{"ScriptPreparationCode":"arr = [{ foo: true, bar: \u0027a\u0027 }, { foo: false, bar: \u0027b\u0027 }, { foo: false, bar: \u0027c\u0027},\r\n{ foo: true, bar: \u0027a\u0027 }, { foo: false, bar: \u0027b\u0027 }, { foo: false, bar: \u0027c\u0027 },\r\n{ foo: true, bar: \u0027a\u0027 }, { foo: false, bar: \u0027b\u0027 }, { foo: false, bar: \u0027c\u0027 }];","TestCases":[{"Name":"filter.map","Code":"const result = arr\r\n .filter((item) =\u003E !item.foo)\r\n .map((item) =\u003E item.bar);","IsDeferred":false},{"Name":"reduce 1","Code":"const result = arr.reduce((acc, item) =\u003E {\r\n if (!item.foo) {\r\n acc.push(item.bar);\r\n }\r\n return acc;\r\n }, []);","IsDeferred":false},{"Name":"reduce 2","Code":"const result = arr.reduce((acc, item) =\u003E acc.concat(!item.foo ? item.bar : []), []);","IsDeferred":false},{"Name":"reduce 3","Code":"const result = arr.reduce((acc, item) =\u003E item.foo ? acc : [...acc, item.bar], []);","IsDeferred":false}]}