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
Lo-Dash, which extends Underscore, has findIndex method, that can find the index of a given instance, or by a given predicate, or according to the properties of a given object.
In your case, I would do:
var index = _.findIndex(tv, { id: voteID });
Give it a try.