filter
Updated on August 22, 2024Source codeTests
createFilter
is a pipe that transforms an array to a filtered array.
Create filter
Call createFilter
with these parameters to create your filter
function:
Parameter
Type
Required
Description
predicate
Function
yes
A function that returns a boolean indicating whether or not an item meets your filter condition.
predicate
receives an item (any data type) and the item's index (number) as parameters.