In underscore, I can successfully find an item with a specific key value
var tv = [{id:1},{id:2}] var voteID = 2; var data = _.find(tv, function(voteItem){ r
you can use indexOf method from lodash
indexOf
lodash
var tv = [{id:1},{id:2}] var voteID = 2; var data = _.find(tv, function(voteItem){ return voteItem.id == voteID; }); var index=_.indexOf(tv,data);