refactor(indexOf) use Array.prototype.indexOf exclusively

This saves around 30 bytes in the minified build for the main file.