{"ScriptPreparationCode":null,"TestCases":[{"Name":"Reduce","Code":"const items = [{x: 1}, {x: 2}, {x: 3}, {x: 4}, {x: 5}, {x: 6}];\r\nconst not1Filter = (item) =\u003E item.x != 1;\r\nconst not2Filter = (item) =\u003E item.x != 2;\r\nconst not6Filter = (item) =\u003E item.x != 6;\r\nconst filters = [not1Filter, not2Filter, not6Filter];\r\nconst result = filters.reduce((acc, f)=\u003E acc.filter(f), items);","IsDeferred":false},{"Name":"Filter every","Code":"const items = [{x: 1}, {x: 2}, {x: 3}, {x: 4}, {x: 5}, {x: 6}];\r\nconst not1Filter = (item) =\u003E item.x != 1;\r\nconst not2Filter = (item) =\u003E item.x != 2;\r\nconst not6Filter = (item) =\u003E item.x != 6;\r\nconst filters = [not1Filter, not2Filter, not6Filter];\r\nconst result2 = items.filter(item =\u003E filters.every((f)=\u003Ef(item)));","IsDeferred":false}]}