@tempots/std
mergeObjects() function
Merges two objects together.
Signature:
mergeObjects: <A extends Record<IndexKey, unknown>, B extends Record<IndexKey, unknown>>(a: A, b: B) => Merge<A, B>
Parameters
Parameter |
Type |
Description |
---|---|---|
a |
A |
The first object to merge. |
b |
B |
The second object to merge. |
Returns: Merge<A, B>
The merged object.