Closed Maggi64 closed 1 year ago
Hi, thank you for the library 👍 How about we add Object.Set which is similar to Object.Update. But you can update and set new paths.
Object.Set
Object.Update
Call<Objects.Set<'a.b', 2>, { a: 1 }>; // { a: { b: 2 }}
Hey, thanks for the feedback, the fact that Object.Update doesn't create new property is a bug actually, just fixed it! I'll publish a new release with the fix soon.
Publish as v1.0.11
Hi, thank you for the library 👍 How about we add
Object.Set
which is similar toObject.Update
. But you can update and set new paths.