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 fec48e2 commit e4ab2d8Copy full SHA for e4ab2d8
query.js
@@ -85,14 +85,15 @@
85
},
86
87
query: function (rows, constraints, getter) {
88
+ if (!Array.isArray(rows)) return []
89
if (typeof getter == 'string') {
90
var method = getter;
91
getter = function (obj, key) {
92
return obj[method](key);
93
};
94
}
95
var filter = new Query.Query(constraints, getter);
- return (rows||[]).filter(filter);
96
+ return rows.filter(filter);
97
98
99
lhs: { // queries that are not yet referenced to a particular attribute, e.g. {$not: {likes: 0}}
0 commit comments