UPDATE: Don't use double negation and and bitwise not
Merge pull request #1 from camspiers/indexof

UPDATE: Don't use double negation and and bitwise not in indexOf