Skip to content

Commit d6eb479

Browse files
committed
fix: slightly better type
1 parent f50e1a0 commit d6eb479

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

where-filter.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,7 @@ export function whereFilter<T>(filter: Where<T> | FilterFunction<T>): FilterFunc
223223
const where = filter as any;
224224
const keys = Object.keys(where);
225225

226-
return function (o) {
227-
const obj = o as any;
226+
return function (obj: any) {
228227
return keys.every(function (key) {
229228
// the expected value can identity-match only if value is string/number/boolean/null
230229
if (where[key] === obj[key]) return true;

0 commit comments

Comments
 (0)