This version is old school.
Please find jQuery plugins on npm.
jQuery Combine
Combine objects using basic set theory - such as union, intersection, difference, and symmetric difference. This means you can add two objects together and only get the attributes that are unique to each object, or other combination.