arraymirror

1.0.0 • Public • Published

arraymirror

Build Status Dependencies Dev Dependencies

Create mirror-object from array. A mirror-object is an object with values equal to it's key names.

It's just like keymirror but using array instead.

INSTALLATION

npm install arraymirror

USAGE

const am = require('arraymirror');
const COLORS = am(['RED', 'GREEN', 'BLUE', 'BLACK', 'WHITE']);
console.log(COLORS);

// the output will be:
// {
//   RED: 'RED',
//   GREEN: 'GREEN',
//   BLUE: 'BLUE',
//   BLACK: 'BLACK',
//   WHITE: 'WHITE'
// }

Readme

Keywords

none

Package Sidebar

Install

npm i arraymirror

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • arch-mage