Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c92ce45

Browse files
guilbepbtford
authored andcommitted
docs(filterFilter): add note on negation
1 parent d7548fd commit c92ce45

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ng/filter/filter.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
* which have property `name` containing "M" and property `phone` containing "1". A special
2424
* property name `$` can be used (as in `{$:"text"}`) to accept a match against any
2525
* property of the object. That's equivalent to the simple substring match with a `string`
26-
* as described above.
26+
* as described above. The predicate can be negated by prefixing the string with `!`.
27+
* For Example `{name: "!M"}` predicate will return an array of items which have property `name`
28+
* not containing "M".
2729
*
2830
* - `function(value)`: A predicate function can be used to write arbitrary filters. The function is
2931
* called for each element of `array`. The final result is an array of those elements that

0 commit comments

Comments
 (0)