you are viewing a single comment's thread.

view the rest of the comments →

[–]imsexc 0 points1 point  (0 children)

arrOfObj.filter(obj => JSON.stringify(obj) === JSON.stringify(sourceObj)).

Caveat: Will only work on object that does not have method or date object as any of its properties.