refactor(indexOf) use Array.prototype.indexOf exclusively

Replaces helper functions with the native ES5 method