Share your code. Components are building blocks, you are the architect.

utils/map-obj-indexed
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
An Object-specific version of [`map`](#map)

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/map-obj-indexed in your project
npm i @bit/bit.ramda.utils.map-obj-indexed
Copied

mapObjIndexed (fn:Function, obj:Object) : Object

An Object-specific version of map. The function is applied to three arguments: (value, key, obj). If only the value is significant, use map instead.

Example

var xyz = { x: 1, y: 2, z: 3 };
     var prependKeyAndDouble = (num, key, obj) => key + (num * 2);

     R.mapObjIndexed(prependKeyAndDouble, xyz); //=> { x: 'x2', y: 'y4', z: 'z6' }

Arguments

fn: Function

obj: Object

Returns

Object