MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey

disccomp

Member since
disccomp

Recent Docs Activity

View all activity
Page Date Comment

Array.prototype.filter()


Found that the example filter failed if id = 0. 'id' in obj or hasOwnProperty are better options, I think, and !isNaN(obj.id).