The filter function can be used to filter the contents of an array. It's functions in a similar way to javascripts Array.prototype.filterarrow-up-right.
filter
[1, 2, 3].filter($this > 1) // [2, 3]
Last updated 1 year ago