Nondeterministic Postrequisite Metaprotocol
Have ideas to improve npm?Join in the discussion! »

array-to-plain-object

1.0.0 • Public • Published

array-to-plain-object

npm Travis (.org) npm npm bundle size

Convert an array into a plain object

Install

npm i array-to-plain-object

Usage

const arrayToObject = require('array-to-plain-object')
 
const obj = arrayToObject(['New York', 'Berlin', 'Sarajevo'])
 
console.log(obj) // { 0: "New York", 1: "Berlin", 2: "Sarajevo" }

License

MIT

Install

npm i array-to-plain-object

DownloadsWeekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

2.68 kB

Total Files

4

Last publish

Collaborators

  • avatar