typescript reduce filter examples

Solutions on MaxInterview for typescript reduce filter examples by the best coders in the world

showing results for - "typescript reduce filter examples"
Debra
02 Sep 2019
1var difficult_tasks = tasks.filter(function (task) {
2    return task.duration >= 120;
3});
4 
5// Using ES6
6var difficult_tasks = tasks.filter((task) => task.duration >= 120 );
7