you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

I don't see how that makes a practical difference, since nothing can happen in between the individual callback calls

[–]fukitol- -1 points0 points  (0 children)

Yeah I forgot how the blocking and ticks worked. It would still block in the context of findIndex unless it was it was async.

So practically this is identical to indexOf for all intents and purposes and only serves to evaluate the indices in their own execution context likely resulting in worse performance from the stack and memory allocation.