Revert "change indexOf to in operator for Array"

This reverts commit 7c642d7c4482e51cb1212b04db8570d4841fd083.