Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

14 Commits

Repository files navigation

map

Map utility

Installation

$ component install component/map

API

map(array, fn)

Map returning a new array:

varnames=map(users,function(user){returnuser.name;});

map(array, string)

Map properties in string returning a new array:

varnames=map(users,'user.name');varfirstNames=map(users,'user.name.first');

License

MIT

About

Map utility

Resources

Stars

5 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages