Filter component

Iterates over elements of collection, returning an array of all elements that match the values for specified key. Note: the comparison is not deep and only works for values of primitive types.


collection Array - The collection to iterate over.

values Array - The values to match to.


results Array - Returns the new filtered array, otherwise false


Filter component provides a basic filtering over elements of collection. You specify the key of the field you want to make a comparison by in the Settings. The field should be a primitive value and not an Object. All matched elements of the collection are returned as new array. If no match is found then boolean false is emitted.

Its useful to quickly filter out items of a collection by array of ID values.


Field key

The key name of the field for value comparison.