I have array of objects
var arr = [
{"id" : "1", "description" : "one"},
{"id" : "2", "description" : "two"},
{"id" : "3", "description" : "three"}]
I need get index, for example, for object with id="2".I do
var index = jQuery.inArray( {"id" : "2", "description" : "two"}, arr )
In index I get -1.