{"ScriptPreparationCode":"var arr1 = [];\r\nfor (let i = 0; i \u003C 100000; i\u002B\u002B) {\r\n arr1.push(\u0027\u0027 \u002B Math.random());\r\n}\r\n\r\nvar arr2 = [];\r\nfor (let i = 0; i \u003C 100000; i\u002B\u002B) {\r\n arr2.push(\u0027\u0027 \u002B Math.random());\r\n}","TestCases":[{"Name":"Lodash","Code":"const notInArr1 = _.difference(arr2, arr1)\r\nconst notInArr2 = _.difference(arr1, arr2)","IsDeferred":false},{"Name":"Set \u0026 Filter","Code":"const arr1Set = new Set();\r\nconst arr2Set = new Set();\r\narr1.forEach(value =\u003E arr1Set.add(value));\r\narr2.forEach(value =\u003E arr2Set.add(value));\r\n\r\nconst notInArr1 = arr2.filter(value =\u003E !arr1Set.has(value));\r\nconst notInArr2 = arr1.filter(value =\u003E !arr2Set.has(value));","IsDeferred":false}]}