{"ScriptPreparationCode":"var test = []\r\n\r\n for(let i=1; i\u003C200000; i\u002B\u002B) {\r\n test.push({\r\n id: i,\r\n class: Math.floor(Math.random()*10)\r\n })\r\n }\r\n","TestCases":[{"Name":"filter map","Code":"test.filter(item =\u003E item.class ==2).map(item =\u003E item.id)","IsDeferred":false},{"Name":"reduce","Code":"test.reduce((acc, item) =\u003E {\r\n if(item.class==2) {\r\n acc.push(item.id)\r\n return acc\r\n }\r\n return acc\r\n }, [])","IsDeferred":false},{"Name":"for of","Code":"let acc = []\r\nfor(const item of test) {\r\n if(item.class==2) {\r\n acc.push(item.id)\r\n }\r\n}","IsDeferred":false},{"Name":"for in","Code":"let acc = []\r\nfor(const indx in test) {\r\n const item = test[indx]\r\n if(item.class==2) {\r\n acc.push(item.id)\r\n }\r\n}","IsDeferred":false},{"Name":"for length","Code":"let acc = []\r\nfor(let i=1; i\u003Ctest.length; i\u002B\u002B) {\r\n const item = test[i]\r\n if(item.class==2) {\r\n acc.push(item.id)\r\n }\r\n}","IsDeferred":false}]}