{"ScriptPreparationCode":"var array = [];\r\nfor (var i = 0; i \u003C 300; \u002B\u002Bi) {\r\n array.push({\r\n \u0027id\u0027: i,\r\n \u0027name\u0027: \u0027test-\u0027 \u002B i\r\n });\r\n}\r\n\r\nfunction hasWithIndexOf(id) {\r\n return array.indexOf(i =\u003E i.id === id);\r\n}\r\n\r\nvar map = array.map(i =\u003E i.id);\r\n\r\nfunction hasWithMap(id) {\r\n return map.indexOf(id);\r\n}","TestCases":[{"Name":"Array index of","Code":"for (var i=0; i\u003C100; \u002B\u002Bi) {\r\n\thasWithIndexOf(\u0027404\u0027);\r\n}","IsDeferred":false},{"Name":"Map index of","Code":"for (var i=0; i\u003C100; \u002B\u002Bi) {\r\n\thasWithMap(\u0027404\u0027);\r\n}","IsDeferred":false}]}