{"ScriptPreparationCode":"var ids = [\u0027\u0027];\r\nvar entities = { \u0027\u0027: { id: \u0027\u0027, number: 10000 } };\r\nvar id = \u0027\u0027;\r\n\r\nfor (let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n id = String(i);\r\n ids.push(id);\r\n entities[id] = { id, number: i }\r\n}\r\n\r\nfunction getRandomInt(min, max) {\r\n min = Math.ceil(min);\r\n max = Math.floor(max);\r\n return Math.floor(Math.random() * (max - min) \u002B min); //The maximum is exclusive and the minimum is inclusive\r\n}\r\n\r\nvar idsFind = [\u0027\u0027];\r\n\r\nfor (let i = 0; i \u003C 100; i\u002B\u002B) {\r\n idsFind.push(String(getRandomInt(0, 20000)));\r\n}","TestCases":[{"Name":"array.includes","Code":"var result = [];\r\n\r\nfor (const id of idsFind) {\r\n if (ids.includes(id)) {\r\n result.push(entities[id])\r\n }\r\n}\r\n\r\nreturn result","IsDeferred":false},{"Name":"Object.prototype.hasOwnProperty","Code":"var result = [];\r\n\r\nfor (const id of idsFind) {\r\n if (Object.prototype.hasOwnProperty.call(entities, id)) {\r\n result.push(entities[id])\r\n }\r\n}\r\n\r\nreturn result","IsDeferred":false},{"Name":"object.hasOwnProperty","Code":"var result = [];\r\n\r\nfor (const id of idsFind) {\r\n if (entities.hasOwnProperty(id)) {\r\n result.push(entities[id])\r\n }\r\n}\r\n\r\nreturn result","IsDeferred":false},{"Name":"Reflect.has","Code":"var result = [];\r\n\r\nfor (const id of idsFind) {\r\n if (Reflect.has(entities, id)) {\r\n result.push(entities[id])\r\n }\r\n}\r\n\r\nreturn result","IsDeferred":false},{"Name":"object[field]","Code":"var result = [];\r\n\r\nfor (const id of idsFind) {\r\n if (entities[id] != null) {\r\n result.push(entities[id])\r\n }\r\n}\r\n\r\nreturn result","IsDeferred":false}]}