FILTER function fully mirrors REJECT


The FILTER function now works with objects and arrays.

  • Objects: it filters based on the values of each key-value pair within the object.

  • Arrays: it's possible to pass in an array of values to match against instead of a lambda function

This makes FILTER a perfect mirror of the REJECT function. FILTER includes matches while REJECT excludes matches.