Add findIndex method