Closed kafeltz closed 6 years ago
I would probably compare index with array length but maybe your solution is better (in case we still have at least one element in the list). I will have a more precise look either tonight or tomorrow. Super busy at work now :/
Above was written non-sense, lol :) I've added a couple lines of code, which might be over-defensive but they make me more comfortable, also a couple of tests. Publishing to npm soon
…tside its bound