This is an old revision of the document!
The most basic of search algorithms.
Interestingly a simple
indexOf() implementation such as this can be faster than the builtin function. This can be caused by the builtin functions doing more work, such as handling edge cases https://github.com/codemix/fast.js.