Array.$filter()

Method $filter(text)
Description Use filter() to select a subset of the items in the list to be displayed. The function returns a new array such that only items which contain the text are present in the new array. This is usually used when we want to give the user an option to narrow down a list of results. If you prefix the text with ! than the filter returns everything except what has matched.
Method $filter(predicate)
Description A predicate can be used to filter specific properties on the object. For example {name:"M", phone:"1"} will return only those objects which have property name and contains "M" and property phone which contains "1". A special property $ can be used (as in {$:"text"}) to filter on any property which makes it equivalent to filter("text") as described above.

Example