Analogous to Array.filter in Javascript. A wrapper around base::Filter which provides the same parameter order.

filter(object, func)

Arguments

object

The object to filter

func

The predicate function