0.1.3 • Published 7 years ago

symbol-keymirror v0.1.3

Weekly downloads
33
License
MIT
Repository
github
Last release
7 years ago

symbol-keymirror NPM TravisCI

How to install?

$ npm install --save symbol-keymirror

How to use?

object: symbolKeyMirror(String) Takes an array of string and returns an object with the string as key, and Symbol(key) as the value

const symbolKeyMirror = require('symbol-keymirror');
const keys = [
  'ADD_ITEM',
  'REMOVE_ITEM'
];

const symbols = symbolKeyMirror(keys);

symbols.ADD_ITEM; //Symbol('ADD_ITEM')
0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago