set
Set a value in object at given path. Method is an alias for Lodash set
.
import { set } from "@aedart/support/objects";
const target = {};
set(target, 'a.foo', 'bar');
console.log(target); // { a: { foo: 'bar } }
set
Set a value in object at given path. Method is an alias for Lodash set
.
import { set } from "@aedart/support/objects";
const target = {};
set(target, 'a.foo', 'bar');
console.log(target); // { a: { foo: 'bar } }