Do you know what algorithm the native array find(...) or indexOf(...) function in your favorite programming language uses?
Have you considered what scenarios these in-built functions might not be the best pick for the job at hand, and what alternatives you'd need to explore?