title: jQuery function to get all unique elements from an array?
body: <p><a href="http://api.jquery.com/jQuery.unique/" rel="noreferrer">jQuery.unique</a> lets you get unique elements of an array, but the docs say the function is mostly for internal use and only operates on DOM elements. Another SO response said the <code>unique()</code> function worked on numbers, but that this use case is not necessarily future proof because it's not explicitly stated in the docs.</p>
  
  <p>Given this, is there a "standard" jQuery function for accessing only the unique values — specifically, primitives like integers — in an array? (Obviously, we can construct a loop with the <code>each()</code> function, but we are new to jQuery and would like to know if there is a dedicated jQuery function for this.)</p>