Get Index of Object in Array by Property in JavaScript

Get Index of Object in Array by Property in JavaScript