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