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.
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.