{"ScriptPreparationCode":"var idToGet = \u0027\u0027\t\r\n\r\nfunction uuidv4() {\r\n return \u0027xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\u0027.replace(/[xy]/g, function(c) {\r\n var r = Math.random() * 16 | 0, v = c == \u0027x\u0027 ? r : (r \u0026 0x3 | 0x8);\r\n return v.toString(16);\r\n });\r\n}\r\n\r\nvar arr = [];\r\n for (var i = 0; i \u003C 1000; i\u002B\u002B) {\r\n arr[i] = {id: uuidv4(), idx: i};\r\n }\r\n\r\n\tvar item = arr[Math.floor(Math.random() * arr.length)];\r\n\t\r\n\tidToGet = item.id\r\n \r\n function someFn(i) {\r\n return i.id === idToGet\r\n }","TestCases":[{"Name":"foreach","Code":"arr.forEach(function (item){\r\n someFn(item);\r\n})","IsDeferred":false},{"Name":"for","Code":"for (var i = 0, len = arr.length; i \u003C len; i\u002B\u002B) {\r\n someFn(arr[i]);\r\n}","IsDeferred":false},{"Name":"map","Code":"arr.map(item =\u003E someFn(item))","IsDeferred":false}]}