{"ScriptPreparationCode":"var first = [{batchId: 2, userId: 234},{batchId: 2, userId: 232},{batchId: 2, userId: 224},{batchId: 2, userId: 222}];\r\nvar second = [{batchId: 3, userId: 234},{batchId: 3, userId: 232},{batchId: 3, userId: 224},{batchId: 3, userId: 222}];","TestCases":[{"Name":"intersection","Code":"_.intersection(first, second)","IsDeferred":false},{"Name":"set","Code":"const firstSet = new Set(first);\r\nconst secondSet = new Set(second);\r\n\r\nnew Set([...firstSet].filter(item =\u003E secondSet.has(item)));","IsDeferred":false}]}