Closed zerovox closed 7 years ago
That's not entirely accurate - we want to shim if it reaches the iteration of index 1 - but you're correct that this seems wrong, because of the undefined
.
I'll get a fix out for this shortly.
(note that this isn't breaking anything, it's just needlessly shimming)
Published as v0.35.3.
I believe this will shim find if the behaviour of find is correct.
[, 1].find(function (item, idx) { return idx === 0; })
should returnundefined
(assuming my understanding that[, 1]
should act the same as[undefined, 1]
, so we want to shim if it returns1
. This means the negation is placed incorrectly.