docs(filterFilter): add note on negation

This commit is contained in:
Guilbert
2014-07-08 11:17:48 +02:00
committed by Brian Ford
parent d7548fdf1c
commit c92ce4511b
+3 -1
View File
@@ -23,7 +23,9 @@
* which have property `name` containing "M" and property `phone` containing "1". A special
* property name `$` can be used (as in `{$:"text"}`) to accept a match against any
* property of the object. That's equivalent to the simple substring match with a `string`
* as described above.
* as described above. The predicate can be negated by prefixing the string with `!`.
* For Example `{name: "!M"}` predicate will return an array of items which have property `name`
* not containing "M".
*
* - `function(value)`: A predicate function can be used to write arbitrary filters. The function is
* called for each element of `array`. The final result is an array of those elements that