Js Find Index In Array Of Pointers With Example