Documentation - v7.4.0
    Preparing search index...
    • Performs a non-mutating deep merge of two or more values.

      • All arguments are left unchanged; the result is always a new value.
      • Objects are merged key by key; arrays are merged index by index.
      • undefined values are skipped (they do not overwrite existing values).
      • null values replace existing values.

      Type Parameters

      • A
      • B

      Parameters

      Returns Combined<A, B>

      A new deeply-merged value of the combined type.

      combine({ a: 1 }, { b: 2 }) // { a: 1, b: 2 }
      combine({ a: { x: 1 } }, { a: { y: 2 } }) // { a: { x: 1, y: 2 } }
    • Performs a non-mutating deep merge of two or more values.

      • All arguments are left unchanged; the result is always a new value.
      • Objects are merged key by key; arrays are merged index by index.
      • undefined values are skipped (they do not overwrite existing values).
      • null values replace existing values.

      Type Parameters

      • A
      • B
      • C

      Parameters

      Returns Combined<Combined<A, B>, C>

      A new deeply-merged value of the combined type.

      combine({ a: 1 }, { b: 2 }) // { a: 1, b: 2 }
      combine({ a: { x: 1 } }, { a: { y: 2 } }) // { a: { x: 1, y: 2 } }
    • Performs a non-mutating deep merge of two or more values.

      • All arguments are left unchanged; the result is always a new value.
      • Objects are merged key by key; arrays are merged index by index.
      • undefined values are skipped (they do not overwrite existing values).
      • null values replace existing values.

      Type Parameters

      • A
      • B
      • C
      • D

      Parameters

      Returns Combined<Combined<Combined<A, B>, C>, D>

      A new deeply-merged value of the combined type.

      combine({ a: 1 }, { b: 2 }) // { a: 1, b: 2 }
      combine({ a: { x: 1 } }, { a: { y: 2 } }) // { a: { x: 1, y: 2 } }
    • Performs a non-mutating deep merge of two or more values.

      • All arguments are left unchanged; the result is always a new value.
      • Objects are merged key by key; arrays are merged index by index.
      • undefined values are skipped (they do not overwrite existing values).
      • null values replace existing values.

      Type Parameters

      • A
      • B
      • C
      • D
      • E

      Parameters

      Returns Combined<Combined<Combined<Combined<A, B>, C>, D>, E>

      A new deeply-merged value of the combined type.

      combine({ a: 1 }, { b: 2 }) // { a: 1, b: 2 }
      combine({ a: { x: 1 } }, { a: { y: 2 } }) // { a: { x: 1, y: 2 } }
    • Performs a non-mutating deep merge of two or more values.

      • All arguments are left unchanged; the result is always a new value.
      • Objects are merged key by key; arrays are merged index by index.
      • undefined values are skipped (they do not overwrite existing values).
      • null values replace existing values.

      Type Parameters

      • A
      • B
      • C
      • D
      • E
      • F

      Parameters

      Returns Combined<Combined<Combined<Combined<Combined<A, B>, C>, D>, E>, F>

      A new deeply-merged value of the combined type.

      combine({ a: 1 }, { b: 2 }) // { a: 1, b: 2 }
      combine({ a: { x: 1 } }, { a: { y: 2 } }) // { a: { x: 1, y: 2 } }
    • Performs a non-mutating deep merge of two or more values.

      • All arguments are left unchanged; the result is always a new value.
      • Objects are merged key by key; arrays are merged index by index.
      • undefined values are skipped (they do not overwrite existing values).
      • null values replace existing values.

      Type Parameters

      • A
      • B
      • C
      • D
      • E
      • F
      • G

      Parameters

      Returns Combined<Combined<Combined<Combined<Combined<Combined<A, B>, C>, D>, E>, F>, G>

      A new deeply-merged value of the combined type.

      combine({ a: 1 }, { b: 2 }) // { a: 1, b: 2 }
      combine({ a: { x: 1 } }, { a: { y: 2 } }) // { a: { x: 1, y: 2 } }
    • Performs a non-mutating deep merge of two or more values.

      • All arguments are left unchanged; the result is always a new value.
      • Objects are merged key by key; arrays are merged index by index.
      • undefined values are skipped (they do not overwrite existing values).
      • null values replace existing values.

      Type Parameters

      • A
      • B
      • C
      • D
      • E
      • F
      • G
      • H

      Parameters

      Returns Combined<
          Combined<
              Combined<Combined<Combined<Combined<Combined<A, B>, C>, D>, E>, F>,
              G,
          >,
          H,
      >

      A new deeply-merged value of the combined type.

      combine({ a: 1 }, { b: 2 }) // { a: 1, b: 2 }
      combine({ a: { x: 1 } }, { a: { y: 2 } }) // { a: { x: 1, y: 2 } }