The assigned-to target object.
assign nested properties:
import { assign } from '@sgrud/core';
assign(
{ one: { one: true }, two: false },
{ one: { key: null } },
{ two: true }
);
// { one: { one: true, key: null }, two: true }
Generated using TypeDoc
assigns (deep copies) the values of all of the enumerable own properties from one or more
sourcesto atarget. The last value within the lastsourcesobject takes precedence over any previously encountered values.