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

Package Sidebar

Install

npm i array-to-plain-object

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.68 kB

Total Files

4

Last publish

Collaborators

  • neosiae