bloody-keymirror
v1.0.0
Published
mirror keys in a new object
Downloads
4
Readme
keyMirror
install
$ npm install bloody-keymirror
require
var keyMirror = require("bloody-keymirror")
api
keyMirror(object) > mirroredObject
takes an object, and creates a new one having,
for each object
's key
a key
property set to
key
.
example
var constants = keyMirror({
GET_DATA : null,
RECEIVED_DATA : null
})
constants.GET_DATA // "GET_DATA"