foia
Find Object In an Array of objects
installation
npm install foia
usage
return the first index of the found object. Otherwise return -1.
var arrayofobjects = a : 'a' b : 'b' c : 'c' d : 'd' ; var foundobjindex = ;var notfoundobjindex = ; //foundobjindex : 0//notfoundobjindex : -1