You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My object = {a: null};
If I run objectPath.set(object, 'a.b', 'c') fire the error "Cannot set property 'b' of null".
Pls, add fourth parameter to .set(), isForce. If true - replace null (primitive value) to object path.
The text was updated successfully, but these errors were encountered:
Noticed this null issue too. I'd say null should be treated the same as undefined in regards to creating intermediate objects and arrays.
// this worksrequire("object-path").set({a: undefined},"a.b","c")// this throws "Cannot set property 'b' of null"require("object-path").set({a: null},"a.b","c")
Hello!
Thanks for You work and 'object-path'!
My object = {a: null};
If I run objectPath.set(object, 'a.b', 'c') fire the error "Cannot set property 'b' of null".
Pls, add fourth parameter to .set(), isForce. If true - replace null (primitive value) to object path.
The text was updated successfully, but these errors were encountered: