Js Find Index Array Of Pointers In Cpp