Constructor
new Filter()
Creates a new instance of the Filter class. Note that this class is intended
as a static library of methods, thus instantiation results in a warning.
- Source:
Methods
(static) unique(element, indexopt, arrayopt, thisArgopt) → {boolean}
Filter out duplicates in the Array object.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
element |
Object | The current element being processed in the array. | |
index |
number |
<optional> |
The index of the current element being processed in the array. |
array |
Array |
<optional> |
The array on which filter() was called. |
thisArg |
Object |
<optional> |
Value to use as this when executing callbackFn. |
- Source:
Returns:
- Type
- boolean