Forked from http://github.com/component/indexof