Open Bryukh opened 8 years ago
This just looks like a case of stupid code, looks like it's checking for undefined with !arg which makes it treat 0 as no argument. Can't test now but just changing this line to if (i === undefined)
will likely fix things.
i fixed it and made a pull request, i am just waiting for someone to merge it
it is fixed right now
list.pop([index])
with index doesn't work correctly. It alwayspop
the last element and ignoresindex
argument.