Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 247 Bytes

predicateFunction.md

File metadata and controls

10 lines (7 loc) · 247 Bytes

Predicate function

A predicate function is a function that takes one item as input and returns true/false based on whether the item satisfies a condition.

 function isTaskOfType(task, type){
   return task.type === type;
 }