Class: Filter

Filter()

Base filter.

Constructor

new Filter()

Source:

Methods

(static) apply(filter, array)

Returns a new array comprised of elements from the given array that meet the filter's criteria.
Parameters:
Name Type Description
filter implements meetsCriteria(elem) to filter the given array
array is the array to apply the filter to
Source:
Returns:
the new array of filtered elements

meetsCriteria(val)

Indicates if the given value meets the criteria of this filter.
Parameters:
Name Type Description
val is the value to test
Source:
Returns:
true if the value meets the criteria of this filter, false otherwise