This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 41
41
*
42
42
* The final result is an array of those elements that the predicate returned true for.
43
43
*
44
- * @param {function(actual, expected)|true|undefined } comparator Comparator which is used in
44
+ * @param {function(actual, expected)|true|false } [ comparator] Comparator which is used in
45
45
* determining if the expected value (from the filter expression) and actual value (from
46
46
* the object in the array) should be considered a match.
47
47
*
54
54
* - `true`: A shorthand for `function(actual, expected) { return angular.equals(actual, expected)}`.
55
55
* This is essentially strict comparison of expected and actual.
56
56
*
57
- * - `false|undefined`: A short hand for a function which will look for a substring match in case
58
- * insensitive way.
57
+ * - `false`: A short hand for a function which will look for a substring match in a case
58
+ * insensitive way. Primitive values are converted to strings. Objects are not compared against
59
+ * primitives, unless they have a custom `toString` method (e.g. `Date` objects).
59
60
*
60
- * Primitive values are converted to strings. Objects are not compared against primitives,
61
- * unless they have a custom `toString` method (e.g. `Date` objects).
62
61
*
63
- * @param {string= } anyPropertyKey The special property name that matches against any property.
62
+ * Defaults to `false`.
63
+ *
64
+ * @param {string } [anyPropertyKey] The special property name that matches against any property.
64
65
* By default `$`.
65
66
*
66
67
* @example
You can’t perform that action at this time.
0 commit comments