{"ScriptPreparationCode":null,"TestCases":[{"Name":"Set.has multiple","Code":"const oldData = Array.from({ length: 500 }, (x, i) =\u003E ({ id: String(i), x: 0, y: 0 }));\r\nconst newData = Array.from({ length: 50 }, (x, i) =\u003E ({ id: String(i * 10), x: 1, y: 1 }));\r\n\r\nconst oldDataSet = new Set(oldData.map((od) =\u003E od.id));\r\nfor (const nd of newData) {\r\n const has = oldDataSet.has(nd.id);\r\n}\r\n","IsDeferred":false},{"Name":"Array.some multiple","Code":"const oldData = Array.from({ length: 500 }, (x, i) =\u003E ({ id: String(i), x: 0, y: 0 }));\r\nconst newData = Array.from({ length: 50 }, (x, i) =\u003E ({ id: String(i * 10), x: 1, y: 1 }));\r\n\r\nfor (const nd of newData) {\r\n const has = oldData.some((od) =\u003E od.id === nd.id);\r\n}\r\n","IsDeferred":false},{"Name":"Set.has single","Code":"const oldData = Array.from({ length: 500 }, (x, i) =\u003E ({ id: String(i), x: 0, y: 0 }));\r\nconst findId = \u0022450\u0022;\r\n\r\nconst oldDataSet = new Set(oldData.map((od) =\u003E od.id));\r\n\r\nconst has = oldDataSet.has(findId);\r\n","IsDeferred":false},{"Name":"Array.some single","Code":"const oldData = Array.from({ length: 500 }, (x, i) =\u003E ({ id: String(i), x: 0, y: 0 }));\r\nconst findId = \u0022450\u0022;\r\n\r\nconst has = oldData.some((od) =\u003E od.id === findId);\r\n","IsDeferred":false}]}