{"ScriptPreparationCode":"var arr = []\r\nfor (var i = 0; i \u003C 1000000; i\u002B\u002B) {\r\n arr.push({ Status: Math.random() \u003E 0.5 ? \u0027Active\u0027: \u0027NotActive\u0027 })\r\n}","TestCases":[{"Name":"filter \u002B map","Code":"arr.filter(item =\u003E item.Status !== \u0027NotActive\u0027).map(item =\u003E { status: item.Status })","IsDeferred":false},{"Name":"reduce","Code":"arr.reduce((acc, item) =\u003E {\r\n if (item.Status !== \u0027NotActive\u0027) {\r\n acc.push({ status: item.Status })\r\n return acc\r\n } \r\n return acc\r\n}, [])","IsDeferred":false}]}