{"ScriptPreparationCode":"window.foo = [\u0027cat\u0027, \u0027dog\u0027, \u0027bird\u0027];\r\nwindow.bar = [\u0027cat\u0027, \u0027dog\u0027, \u0027bird\u0027];\r\n\r\nwindow.equals = (a, b) =\u003E\r\n a.length === b.length \u0026\u0026\r\n a.every((v, i) =\u003E v === b[i]);\r\n\r\nwindow.equalsIgnoreOrder = (a, b) =\u003E {\r\n if (a.length !== b.length) return false;\r\n const uniqueValues = new Set([...a, ...b]);\r\n for (const v of uniqueValues) {\r\n const aCount = a.filter(e =\u003E e === v).length;\r\n const bCount = b.filter(e =\u003E e === v).length;\r\n if (aCount !== bCount) return false;\r\n }\r\n return true;\r\n}","TestCases":[{"Name":"_.isEqual","Code":"_.isEqual(window.foo, window.bar)","IsDeferred":false},{"Name":"JSON.stringify","Code":"JSON.stringify(window.foo) === JSON.stringify(window.bar);","IsDeferred":false},{"Name":"equals","Code":"window.equals(window.foo, window.bar)","IsDeferred":false},{"Name":"equalsIgnoreOrder","Code":"window.equalsIgnoreOrder(window.foo, window.bar)","IsDeferred":false}]}