1.2.0 • Published 10 years ago

objmap v1.2.0

Weekly downloads
4
License
-
Repository
github
Last release
10 years ago

objmap

map over objects

Installation

$ npm install objmap

or

$ component install nathan7/objmap

API

objmap(obj, function(value, key, obj), newObj = {}, thisObj)

Creates a new object with the same keys as obj and the values returned from the callback.

objmap.keys(keys, function(key), newObj = {}, thisObj)

Creates a new object with the given keys and the values returned from the callback.

objmap.toArray(obj, function(value, key, obj), thisObj)

Creates a new array with the values returned from the callback.

License

MIT

1.2.0

10 years ago

1.1.0

11 years ago

1.0.0

11 years ago