Skip to content

Welshman Docs / @welshman/lib / mergeRight

Function: mergeRight() ​

mergeRight<T>(a, b): T

Defined in: packages/lib/src/Tools.ts:270

Merges two objects, with right object taking precedence

Type Parameters ​

• T extends Obj<any>

Parameters ​

a ​

T

Left object

b ​

T

Right object

Returns ​

T

Merged object with b"s properties overriding a"s