{"ScriptPreparationCode":"var a = Array(256).fill(0).map((_, index) =\u003E index)\r\na.push(\u0027foo\u0027)\r\n\r\nvar b = \u0027foo\u0027","TestCases":[{"Name":"lodash xor implemantation","Code":"const res = _.xor(a, [b])","IsDeferred":false},{"Name":"alternative with Sets","Code":"function toggleValueInArray(value, list) {\r\n if (list.includes(value)) {\r\n list.filter(listValue =\u003E listValue !== value)\r\n } else {\r\n return [...list, value]\r\n }\r\n}\r\n\r\nconst res = toggleValueInArray(b, a)\r\n","IsDeferred":false}]}