@unction/mergeleft
TypeScript icon, indicating that this package has built-in type declarations

7.13.0 • Public • Published

@unction/mergeLeft

Tests Stability Dependencies

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 left.

const left = {
  alpha: "1",
  beta: "1"
}
const right = {
  beta: "2",
  zeta: "3"
}

mergeLeft(left)(right)

Which returns:

{
  alpha: "1",
  beta: "1",
  zeta: "3"
}

Readme

Keywords

Package Sidebar

Install

npm i @unction/mergeleft

Weekly Downloads

1

Version

7.13.0

License

SEE LICENSE IN LICENSE

Unpacked Size

27.6 kB

Total Files

7

Last publish

Collaborators

  • krainboltgreene