Don't use Array.prototype.indexOf from spec