@s-libs/micro-dash
    Preparing search index...

    Function merge

    • Recursively merges own enumerable string keyed properties of source objects into the destination object. Object properties are merged recursively. Source objects are applied from left to right. Subsequent sources overwrite property assignments of previous sources.

      Note: This function mutates object.

      Differences from lodash:

      • will overwrite a value with undefined
      • only supports arguments that are objects
      • cannot handle circular references
      • when merging an array onto a non-array, the result is a non-array

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 11,996 bytes
      • Micro-dash: 426 bytes

      Type Parameters

      • O extends object
      • S extends Mergeable<O>[]

      Parameters

      • object: O
      • ...sources: S

      Returns UnionToIntersection<O | S[number]>