-
Notifications
You must be signed in to change notification settings - Fork 24
Closed
Description
Hello,
Thank you for this very useful package.
I have a problem with a query supported within mongodb but not within the package.
const store = [{ foo: { bar: 'value' }}];
const predicate = guard({ foo: { bar: 'value' }} as any); // any to avoid typing error
const result = store.filter(predicate);
but it works with:
const store = [{ foo: { bar: 'value' }}];
const predicate = guard({ 'foo.bar': 'value' } );
const result = store.filter(predicate);
Is it easy to fix ?
Metadata
Metadata
Assignees
Labels
No labels