Skip to content

nathan7/objmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

map over objects

Resources

Stars

Watchers

Forks

Packages

No packages published