Javascript: Find

(Last Updated On: )

If we want to find and return the first occurrence from our object array.

var rec = myObjectArray.find(value, index) { return value.id==mySearchId; });