From 397ea5875abd44894ef33abc24b5320f83a98a58 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 5 May 2017 00:18:35 -0400 Subject: [PATCH] Use Set for arrayUnique --- chrome/content/zotero/xpcom/utilities.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index 8c28e5b14..4724119c4 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -740,21 +740,11 @@ Zotero.Utilities = { /** * Return new array with duplicate values removed * - * From http://stackoverflow.com/a/1961068 - * * @param {Array} array * @return {Array} */ - "arrayUnique":function(arr) { - var u = {}, a = []; - for (var i=0, l=arr.length; i