Edit this page

up.util up.util.filter(list, tester)
JavaScript function

Returns all elements from the given list that return a truthy value when passed to the given function.

Parameters

list ListorIterator
tester Function(value, index): boolean

Return value

Array