Which algorithm does ES6 Array.find() use

Viewed 1071

I have looked around but cannot find anywhere that states which algorithm Array.find() uses. Is it a simple loop or maybe a Binary search?

I guess it's different for each JS engine but there must be a consensus on how this function works.

0 Answers
Related