Skip to content

Commit 49455a7

Browse files
guilbepbtford
authored andcommitted
docs(filterFilter): add note on negation
1 parent 85880a6 commit 49455a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ng/filter/filter.js

Lines changed: 3 additions & 1 deletion
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, index)`: A predicate function can be used to write arbitrary filters. The
2931
* function is called for each element of `array`. The final result is an array of those

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy