@unction/mergeright
v7.13.0
Published
Merges two iterables, preferring right
Downloads
445
Readme
@unction/mergeRight
Array | Set | Record<string | number | symbol, B> | Map<B, A> | string => Array | Set | Record<string | number | symbol, B> | Map<B, A> | string => Array | Set | Record<string | number | symbol, B> | Map<B, A> | string
Merges two enumerables, preferring right.
const left = {
alpha: "1",
beta: "1"
}
const right = {
beta: "2",
zeta: "3"
}
mergeRight(left)(right)
Which returns:
{
alpha: "1"
beta: "2",
zeta: "3"
}