{"ScriptPreparationCode":null,"TestCases":[{"Name":"new Set(...)","Code":"const strings = [\u0027russia\u0027, \u0027usa\u0027, \u0027russia\u0027, \u0027france\u0027, \u0027russia\u0027, \u0027spain\u0027];\r\nlet result = [];\r\n\r\nfor(let i = 0; i \u003C 100; \u002B\u002Bi) {\r\n const cities = strings.reduce((acc, item) =\u003E {\r\n \treturn [...acc, item];\r\n }, []);\r\n \r\n [...new Set(cities)];\r\n}\r\n","IsDeferred":false},{"Name":"array.includes","Code":"const strings = [\u0027russia\u0027, \u0027usa\u0027, \u0027russia\u0027, \u0027france\u0027, \u0027russia\u0027, \u0027spain\u0027];\r\n\r\nfor(let i = 0; i \u003C 100; \u002B\u002Bi) {\r\n const cities = strings.reduce((acc, item) =\u003E {\r\n if (!acc.includes(item)) {\r\n\t\treturn [...acc, item];\r\n }\r\n \r\n \treturn acc;\r\n }, []);\r\n}\r\n","IsDeferred":false}]}