{"ScriptPreparationCode":"function unique(array,) {\r\n const result = array.filter(\r\n (item, index, array) =\u003E array.findIndex((a) =\u003E a === item) === index,\r\n );\r\n return result.length === array.length ? array : result;\r\n}","TestCases":[{"Name":"Set","Code":"const l = new Set([1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7]);\r\nreturn l;","IsDeferred":false},{"Name":"Array","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 function","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}]}