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

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