{"ScriptPreparationCode":null,"TestCases":[{"Name":"Using an object","Code":"const nonUnique = [\u0027one\u0027, \u0027two\u0027, \u0027three\u0027, \u0027three\u0027, \u0027four\u0027, \u0027four\u0027, \u0027five\u0027, \u0027six\u0027, \u0027seven\u0027, \u0027eight\u0027, \u0027nine\u0027];\r\nconst unique = Object.keys(nonUnique.reduce((acc, item) =\u003E {\r\n if (!acc[item]) {\r\n acc[item] = true\r\n };\r\n return acc;\r\n}, {})).keys();\r\n","IsDeferred":false},{"Name":"Using a Set","Code":"const nonUnique = [\u0027one\u0027, \u0027two\u0027, \u0027three\u0027, \u0027three\u0027, \u0027four\u0027, \u0027four\u0027, \u0027five\u0027, \u0027six\u0027, \u0027seven\u0027, \u0027eight\u0027, \u0027nine\u0027];\r\nconst unique = Array.from(new Set(nonUnique));","IsDeferred":false}]}