File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 25
25
* property of the object. That's equivalent to the simple substring match with a `string`
26
26
* as described above.
27
27
*
28
- * - `function`: A predicate function can be used to write arbitrary filters. The function is
28
+ * - `function(value) `: A predicate function can be used to write arbitrary filters. The function is
29
29
* called for each element of `array`. The final result is an array of those elements that
30
30
* the predicate returned true for.
31
31
*
32
- * @param {function(expected, actual )|true|undefined } comparator Comparator which is used in
32
+ * @param {function(actual, expected )|true|undefined } comparator Comparator which is used in
33
33
* determining if the expected value (from the filter expression) and actual value (from
34
34
* the object in the array) should be considered a match.
35
35
*
36
36
* Can be one of:
37
37
*
38
- * - `function(expected, actual )`:
38
+ * - `function(actual, expected )`:
39
39
* The function will be given the object value and the predicate value to compare and
40
40
* should return true if the item should be included in filtered result.
41
41
*
42
- * - `true`: A shorthand for `function(expected, actual ) { return angular.equals(expected, actual)}`.
42
+ * - `true`: A shorthand for `function(actual, expected ) { return angular.equals(expected, actual)}`.
43
43
* this is essentially strict comparison of expected and actual.
44
44
*
45
45
* - `false|undefined`: A short hand for a function which will look for a substring match in case
You can’t perform that action at this time.
0 commit comments