JavaScript
A5.u.arrayunique Method
Syntax
A5.u.array.unique(array)
Arguments
- arrayarray
The array to get the unique items of. Items in the array can be of any type including objects and arrays.
Returns
- uniquearray
An array of unique items.
Description
Get the unique items of an array.
Example
var a = [1,2,3,3,5,6,1,2,4,6]; var au = A5.u.array.unique(a); // au = [1, 2, 3, 5, 6, 4]