This version is old school.
Please find jQuery plugins on npm.
jQuery Compare
by Steve Worley
A lightweight jQuery plugin that helps with array and object comparisons. The plugin offers a few configurable options to help get the type of matching that you're after. It supports callbacks (error and succcess) and method chaining.