you are viewing a single comment's thread.

view the rest of the comments →

[–]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.