{"ScriptPreparationCode":"\r\nvar arr = [\u0027Jane\u0027, \u0027Bob\u0027, \u0027Kat\u0027, \u0027Kat\u0027, \u0027Bob\u0027, \u0027Jane\u0027, \u0027Ian\u0027, \u0027Jane\u0027, \u0027Bob\u0027, \u0027Kat\u0027, \u0027Kat\u0027, \u0027Bob\u0027, \u0027Jane\u0027, \u0027Ian\u0027];\r\n\r\nArray.prototype.uniqueString = function() {\r\n let tmpObj = {}\r\n for (var i = 0; i \u003C this.length; i\u002B\u002B) {\r\n tmpObj[this[i]] = this[i]\r\n }\r\n return Object.values(tmpObj)\r\n}","TestCases":[{"Name":"Lodash uniq","Code":"var result = _.uniq(arr);","IsDeferred":false},{"Name":"Object keys unique","Code":"var result = arr.uniqueString();","IsDeferred":false}]}