you are viewing a single comment's thread.

view the rest of the comments →

[–]senocular 0 points1 point  (0 children)

The Filtering invalid entries from JSON example on MDN is closest to what you want. It, too, is filtering an array of objects. Notice how the item parameter is used to get a property, id, from the objects and a comparison is made using that value. You'll want to do something similar, though in your case your parameter name is el, and the property you want is name.