Use the set operations UNION, INTERSECT, EXCEPT, known from SQL, to extract data from arrays. DISTINCT is also available to extract an array with distinct values. This plugin has been heavily tested. There are several automated tests for each method in this plugin.
jQuery plugin for generating random array with positive int elements.
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.