Js Array Object Indexof String Method In Apex