Class Index | File Index

Classes


Namespace onlyUnique


Defined in: naview.js.

Namespace Summary
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

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Sep 08 2021 09:00:35 GMT-0300 (BRT)