From 7848f3a4fd4693132794b00ca5597960910eb3f7 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 6 Jun 2017 21:36:17 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- ui (gen4)/lib/util.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui (gen4)/lib/util.js b/ui (gen4)/lib/util.js index c73f7159..f64c0c5c 100755 --- a/ui (gen4)/lib/util.js +++ b/ui (gen4)/lib/util.js @@ -46,6 +46,8 @@ Array.prototype.compact = function(){ // 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... Array.prototype.unique = function(normalize){ if(normalize){ var cache = this.map(function(e){ return normalize(e) })