If you want to filter an array of objects for only specific records that have a key/value, etc.
var records = myObjectArray.filter(function(value, index) { return value.id==id});
A place for tutorials on programming and other such works.
If you want to filter an array of objects for only specific records that have a key/value, etc.
var records = myObjectArray.filter(function(value, index) { return value.id==id});