Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi 7 jaren geleden
..
index.js 0611418f7a added whole system from ola4doc 7 jaren geleden
license 0611418f7a added whole system from ola4doc 7 jaren geleden
package.json cefd1c2ad0 updated sys and created publi 7 jaren geleden
readme.md 0611418f7a added whole system from ola4doc 7 jaren geleden

readme.md

map-obj Build Status

Map object keys and values into a new object

Install

$ npm install --save map-obj

Usage

var mapObj = require('map-obj');

var newObject = mapObj({foo: 'bar'}, function (key, value, object) {
	// first element is the new key and second is the new value
	// here we reverse the order
	return [value, key];
});
//=> {bar: 'foo'}

License

MIT © Sindre Sorhus