JQuery filtering an array of objects using a condition

The equivalent of a Linq.Where() in JQuery:

var elem = $.grep(postcodeResults, function (n) { return n.Udprn == selectedOption; });

Next step will be using linqjs



No Comments


You can leave the first : )



Leave a Reply

Your email address will not be published. Required fields are marked *