pair-into-object

2.0.0 • Public • Published

Pair Into Object Build Status

This single-function library merges two arrays of keys and values respectively into a single object.

For example, with the input key array being ["a", "b", "c"] and the input value array being [1, 2, 3], you would get the object {"a": 1, "b": 2, "c": 3}.

Errors

If your key or value input is not an array, a TypeError will be thrown. If the key and value input arrays do not match in length, an Error will be thrown.

Readme

Keywords

Package Sidebar

Install

npm i pair-into-object

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

7.24 kB

Total Files

6

Last publish

Collaborators

  • haykam821