-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Thanks for your big work on maintaining this library. It helps me a log!
But now, I faced a problem.
Lines 425 to 428 in a95a7fc
| // Do not operate if the value is undefined. | |
| if (typeof val === 'undefined') { | |
| return obj | |
| } |
Due to the code above, I can't set undefined like that:
const o = { foo: { bar: 'baz' } };
dot.set('foo.bar', undefined, o); // not workSo is there a way to set undefined by dot.set ? Or just remove the code I mentioned above, and library users can do what they want.
Metadata
Metadata
Assignees
Labels
No labels