File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 34
34
* `{name: {first: 'John', last: 'Doe'}}` will **not** be matched by `{name: 'John'}`, but
35
35
* **will** be matched by `{$: 'John'}`.
36
36
*
37
- * - `function(value, index)`: A predicate function can be used to write arbitrary filters. The
38
- * function is called for each element of `array`. The final result is an array of those
39
- * elements that the predicate returned true for.
37
+ * - `function(value, index, array)`: A predicate function can be used to write arbitrary filters.
38
+ * The function is called for each element of the array, with the element, its index, and
39
+ * the entire array itself as arguments.
40
+ *
41
+ * The final result is an array of those elements that the predicate returned true for.
40
42
*
41
43
* @param {function(actual, expected)|true|undefined } comparator Comparator which is used in
42
44
* determining if the expected value (from the filter expression) and actual value (from
You can’t perform that action at this time.
0 commit comments