{"ScriptPreparationCode":"var users = [\r\n { user: \u0027joey\u0027, age: 32, id: 0 },\r\n]\r\n\r\nfor(var i=1; i \u003C 10000; i\u002B\u002B) {\r\n users.push({ user: \u0027ross\u0027, age: 41, id: i, managerId: i-1 });\r\n}\r\n\r\nvar usersExistingMap = new Map();\r\nusers.map(u =\u003E {\r\n\tusersExistingMap.set(u.id, u);\r\n});\r\n","TestCases":[{"Name":"array find","Code":"// Native\r\nusers.find(function (o) { return o.id = 41; })","IsDeferred":false},{"Name":"_.find","Code":"_.find(users, function (o) { return o.id = 41; })","IsDeferred":false},{"Name":"map\u002BindexOf","Code":"users.map(o =\u003E o.id).indexOf(41)","IsDeferred":false},{"Name":"findIndex","Code":"users.findIndex(o =\u003E o.id === 41)","IsDeferred":false},{"Name":"new Map object","Code":"let usersMap = new Map();\r\nusers.map(u =\u003E {\r\n\tusersMap.set(u.id, u);\r\n});\r\nusersMap.has(41);","IsDeferred":false},{"Name":"already existing Map object","Code":"usersExistingMap.has(41);","IsDeferred":false}]}