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
sources
to atarget
. The last value within the lastsources
object takes precedence over any previously encountered values.