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

4.9.0 • Public • Published

@unction/pairsValues

Tests Stability Dependencies

ListType<[A, B]> => Array | Set

Takes an list that has pairs (key, values) and returns all the values.

Lets say you have this data:

const data = {
  a: 1,
  b: 2,
  c: 3,
}

And you turn it into pairs:

const pairings = toPairs(data)

You would end up with this:

[
  ['a', 1],
  ['b', 2],
  ['c', 3],
]

Now you just want the keys:

pairsValues(pairings)

You would get the following:

[
  1,
  2,
  3,
]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 4.9.0
    0
    • latest

Version History

Package Sidebar

Install

npm i @unction/pairsvalues

Weekly Downloads

1

Version

4.9.0

License

SEE LICENSE IN LICENSE

Unpacked Size

14.8 kB

Total Files

7

Last publish

Collaborators

  • krainboltgreene