Tweakr
    Preparing search index...

    Function assignDeep

    • Recursively assigns properties from source into target.

      Parameters

      • target: any

        Target object

      • source: any

        Source object

      Returns any

      Target with assigned properties

      assignDeep({ a: { b: 1 } }, { a: { c: 2 } });
      // => { a: { b: 1, c: 2 } }

      1.2.0