filter
(DOC) Removes or retains objects based on a predicate.
Parameters
f
a function which returns true
if the object is to be retained, or false
if the object is to be removed.
preserveMargin
whether the predicate needs the full intervals for objects that extend beyond the bounds