Switch to `indexof`

That way you don’t have to rely on environment to have `indexOf`, but you still have performance gains by using native method if available.