Add indexOf'

@garyb Thoughts?