📜  typescript reduce 过滤器示例 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:19.596000             🧑  作者: Mango

代码示例1
var difficult_tasks = tasks.filter(function (task) {
    return task.duration >= 120;
});
 
// Using ES6
var difficult_tasks = tasks.filter((task) => task.duration >= 120 );