arraymirror
v1.0.0
Published
Create mirror-object from array
Downloads
4
Readme
arraymirror
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'
// }