codetrix - v1.5.0
    Preparing search index...

    Function mergeObjects

    • Deeply merges two or more objects into a single object.

      Type Parameters

      • T extends object

      Parameters

      • ...objects: T[]

        The objects to merge.

      Returns T

      A new object with merged properties.

      mergeObjects({ a: 1 }, { b: 2 }); // { a: 1, b: 2 }