Library API
    Preparing search index...

    Function extend

    • Extends a target object with the properties of one or more source objects. Uses Object.assign internally.

      Type Parameters

      • T extends {}
      • U

      Parameters

      • obj: T

        The target object

      • ...objs: U[]

        The source objects

      Returns T

      The extended target object

      const ext = extend({ a: 1 }, { b: 2 }); // { a: 1, b: 2 }