Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript reduce filter examples

var difficult_tasks = tasks.filter(function (task) {
    return task.duration >= 120;
});
 
// Using ES6
var difficult_tasks = tasks.filter((task) => task.duration >= 120 );
Source by code.tutsplus.com #
 
PREVIOUS NEXT
Tagged: #typescript #reduce #filter #examples
ADD COMMENT
Topic
Name
2+2 =