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 f50e1a0 commit d6eb479Copy full SHA for d6eb479
where-filter.ts
@@ -223,8 +223,7 @@ export function whereFilter<T>(filter: Where<T> | FilterFunction<T>): FilterFunc
223
const where = filter as any;
224
const keys = Object.keys(where);
225
226
- return function (o) {
227
- const obj = o as any;
+ return function (obj: any) {
228
return keys.every(function (key) {
229
// the expected value can identity-match only if value is string/number/boolean/null
230
if (where[key] === obj[key]) return true;
0 commit comments