filter

The filter function can be used to filter the contents of an array. It's functions in a similar way to javascripts Array.prototype.filter.

Examples

[1, 2, 3].filter($this > 1)
// [2, 3]

Last updated