Skip to content

v1.4.0

Compare
Choose a tag to compare
@akuzko akuzko released this 06 May 16:48
· 27 commits to master since this release

New Features

  • Added update.assign helper that merges given object with the one specified by path:
const obj = { foo: { bar: { baz: 'bak' } } };
const upd = update.assign(obj, 'foo.bar', { spam: 'ham' });

upd.foo.bar // => { baz: 'bak', spam: 'ham' }