{"ScriptPreparationCode":"const array1 = [\u0027chive\u0027, \u0027is\u0027, \u0027a\u0027, \u0027fluffy\u0027, \u0027bun\u0027];\r\nconst array2 = [\u0027chive\u0027, \u0027is\u0027, \u0027a\u0027, \u0027fluffy\u0027, \u0027bun\u0027];","TestCases":[{"Name":"lodash difference","Code":"const array1 = [\u0027chive\u0027, \u0027is\u0027, \u0027a\u0027, \u0027fluffy\u0027, \u0027bun\u0027];\r\nconst array2 = [\u0027chive\u0027, \u0027is\u0027, \u0027a\u0027, \u0027fluffy\u0027, \u0027bun\u0027];\r\n\r\nconst isEqual = array1.length === array2.length \u0026\u0026 _.difference(array1, array2) === [];","IsDeferred":false},{"Name":"set","Code":"const array1 = [\u0027chive\u0027, \u0027is\u0027, \u0027a\u0027, \u0027fluffy\u0027, \u0027bun\u0027];\r\nconst array2 = [\u0027chive\u0027, \u0027is\u0027, \u0027a\u0027, \u0027fluffy\u0027, \u0027bun\u0027];\r\n\r\nconst set1 = new Set(array1);\r\nconst set2 = new Set(array2);\r\n\r\nconst isEqual = array1.length === array2.length \u0026\u0026 [...set1].filter(x =\u003E !set2.has(x)) === [];","IsDeferred":false}]}