filter
Filters the elements in the given array based on the given predicate
Arguments
array
- The array to filterpredicate(element, index)
- The predicate to filter by
Example
{
"$template": {
"$comment": "The field below will be [5, 8, 10]",
"test": "{{[1, 2, 3, 5, 8, 10].filter(x => x >= 5)}}"
}
}