File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 3434 * `{name: {first: 'John', last: 'Doe'}}` will **not** be matched by `{name: 'John'}`, but
3535 * **will** be matched by `{$: 'John'}`.
3636 *
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.
4042 *
4143 * @param {function(actual, expected)|true|undefined } comparator Comparator which is used in
4244 * 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