Predicate

A boolean-valued function over a value, possibly including context information regarding that value's position in an array.

      
      interface Predicate<T> {
  (value: T): boolean
}
    

方法

(value: T): boolean
      
      (value: T): boolean
    
参数
value T
返回值

boolean