{"ScriptPreparationCode":"function intersect(...array) {\r\n const sets = array.map(a =\u003E new Set(a));\r\n const s0 = sets[0];\r\n for (const item of s0.values()) {\r\n for(let i = 1; i \u003C array.length; i\u002B\u002B) {\r\n const s = sets[i];\r\n if (!s.has(item)) {\r\n s0.delete(item);\r\n break;\r\n }\r\n }\r\n }\r\n return [...s0];\r\n}\r\n\r\nvar a1 = [];\r\nvar a2 = [];\r\nvar a3 = [];\r\nfor (var i = 0; i \u003C 10; i\u002B\u002B) {\r\n a1.push(~~(Math.random() * 10))\r\n a2.push(~~(Math.random() * 10))\r\n a3.push(~~(Math.random() * 10))\r\n}\r\n\r\nvar a4 = [];\r\nvar a5 = [];\r\nvar a6 = [];\r\nfor (var i = 0; i \u003C 1000; i\u002B\u002B) {\r\n a4.push(~~(Math.random() * 100))\r\n a5.push(~~(Math.random() * 100))\r\n a6.push(~~(Math.random() * 100))\r\n}","TestCases":[{"Name":"native small","Code":"intersect(a1, a2, a3);","IsDeferred":false},{"Name":"lodash small","Code":"_.intersection(a1, a2, a3);","IsDeferred":false},{"Name":"native big","Code":"intersect(a4, a5, a6);","IsDeferred":false},{"Name":"lodash big","Code":"_.intersection(a4, a5, a6);","IsDeferred":false}]}