We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 452caba commit faa37baCopy full SHA for faa37ba
src/_filter/collection/contains.js
@@ -19,15 +19,13 @@ function containsFilter( $parse ) {
19
collection = (isObject(collection)) ? toArray(collection) : collection;
20
21
if(!isArray(collection) || isUndefined(expression)) {
22
- return true;
+ return false;
23
}
24
25
- return collection.some( function(elm) {
26
-
27
- return (isObject(elm) || isFunction(expression)) ?
28
- $parse(expression)(elm) :
29
- elm === expression;
30
+ return collection.some(function(elm) {
+ return (isObject(elm) || isFunction(expression))
+ ? $parse(expression)(elm)
+ : elm === expression;
31
});
32
33
0 commit comments