{"ScriptPreparationCode":"function unique(\r\n array,\r\n equals = Object.is,\r\n) {\r\n const result = array.filter(\r\n (item, index, array) =\u003E array.findIndex((a) =\u003E equals(a, item)) === index,\r\n );\r\n return result.length === array.length ? array : result;\r\n}","TestCases":[{"Name":"Set","Code":"const l = [1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7];\r\nreturn new Set(l);","IsDeferred":false},{"Name":"Lodash uniq","Code":"const l = [1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7];\r\nreturn _.uniq(l);","IsDeferred":false},{"Name":"Custom unique","Code":"const l = [1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7];\r\nreturn unique(l);","IsDeferred":false}]}