Comparing version
@@ -8,2 +8,9 @@ "use strict"; | ||
/** | ||
* Return true if the value is unique in the array | ||
* @param value | ||
* @param index | ||
* @param array | ||
* @returns {boolean} | ||
*/ | ||
function isUniqueInArray(value, index, array) { | ||
@@ -13,2 +20,7 @@ return array.indexOf(value) === index; | ||
/** | ||
* Filter the array by unique entities | ||
* @param array | ||
* @returns {Array.<mixed>} | ||
*/ | ||
function arrayUnique(array) { | ||
@@ -15,0 +27,0 @@ return array.filter(isUniqueInArray); |
{ | ||
"name": "evojs", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "Standard Environment-Free Toolbelt for JS Developers at Evosphere", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
124699
2.13%56
5.66%1101
8.26%