diff --git a/ui (gen4)/lib/util.js b/ui (gen4)/lib/util.js index 18b4414a..2ebc202c 100755 --- a/ui (gen4)/lib/util.js +++ b/ui (gen4)/lib/util.js @@ -127,9 +127,7 @@ Array.prototype.toMap = function(normalize){ // Return an array with duplicate elements removed... // -// NOTE: we are not using an Object as an index here as an Array can -// contain any type of item while Object keys can only be strings... -// NOTE: this may not work on IE... +// NOTE: order is preserved... Array.prototype.unique = function(normalize){ return normalize ? [...new Map(this.map(function(e){ return [normalize(e), e] })).values()]