Download Latest Version node_modules.zip (2.7 MB)
Email in envelope

Get an email when there's a new version of Eduwave

Home / node_modules
Name Modified Size InfoDownloads / Week
Parent folder
assign.js 2024-04-06 1.6 kB
assignIn.js 2024-04-06 906 Bytes
add.js 2024-04-06 469 Bytes
after.js 2024-04-06 1.1 kB
array.js 2024-04-06 2.5 kB
ary.js 2024-04-06 857 Bytes
package.json 2024-04-06 1.5 kB
readme.md 2024-04-06 555 Bytes
index.js 2024-04-06 240 Bytes
license 2024-04-06 1.1 kB
register.js 2024-04-06 31 Bytes
api.js 2024-04-06 358 Bytes
LICENSE 2024-04-06 1.1 kB
readme.markdown 2024-04-06 2.5 kB
README.md 2024-04-06 6.3 kB
minimatch.js 2024-04-06 25.3 kB
test.js 2024-04-06 3.7 kB
Totals: 17 Items   50.1 kB 0

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

Source: readme.md, updated 2024-04-06