{"ScriptPreparationCode":"var items = [];\r\nfor (var i = 0; i \u003C 10000; i\u002B\u002B) {\r\n items[i] = {\r\n id: i,\r\n selected: i % 4 == 0\r\n };\r\n}","TestCases":[{"Name":"reduce","Code":"items.reduce( ( array, item ) =\u003E {\r\n if ( item.selected ) {\r\n array.push( item.id );\r\n }\r\n return array;\r\n}, [] );","IsDeferred":false},{"Name":"filter\u002Bmap","Code":"items.filter( x =\u003E x.selected ).map( x =\u003E x.id );","IsDeferred":false}]}