map-struct
Map values in an observ-struct
Install
$ npm install --save map-struct
Usage
var map = var Struct = var numbers = //=> {a: 2, b: 4}
API
map(struct, fn)
-> object
struct
Required
Type: function
An observ-struct.
fn
Type: function
Arguments: value, key, struct
A function to call with the value/key pairs and the original object. Each return value is stored at the key in the new object.
License
MIT © Ben Drucker