Namespace onlyUnique
Defined in: naview.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Helper function for returning unique elements when passed to the Array.prototype.filter() method.
|
Namespace Detail
onlyUnique
Helper function for returning unique elements when passed to the Array.prototype.filter() method.
[1,2,2,3,3,4].filter(onlyUnique) returns [1,2,3,4]
- Parameters:
- {number} value
- value of current Array Object
- {number} index
- index of current Array Object
- {Array} self
- any possible Array