UNPKG

@vect/vector-mapper

Version:

Iterate through a vector, with returned value or without returned value, or iterate using generator.

45 lines (35 loc) 1.66 kB
# @vect/vector-mapper [![npm version][badge-npm-version]][url-npm] [![npm download monthly][badge-npm-download-monthly]][url-npm] [![npm download total][badge-npm-download-total]][url-npm] [![npm dependents][badge-npm-dependents]][url-github] [![npm license][badge-npm-license]][url-npm] [![pp install size][badge-pp-install-size]][url-pp] [![github commit last][badge-github-last-commit]][url-github] [![github commit total][badge-github-commit-count]][url-github] [//]: <> (Shields) [badge-npm-version]: https://flat.badgen.net/npm/v/@vect/vector-mapper [badge-npm-download-monthly]: https://flat.badgen.net/npm/dm/@vect/vector-mapper [badge-npm-download-total]:https://flat.badgen.net/npm/dt/@vect/vector-mapper [badge-npm-dependents]: https://flat.badgen.net/npm/dependents/@vect/vector-mapper [badge-npm-license]: https://flat.badgen.net/npm/license/@vect/vector-mapper [badge-pp-install-size]: https://flat.badgen.net/packagephobia/install/@vect/vector-mapper [badge-github-last-commit]: https://flat.badgen.net/github/last-commit/hoyeungw/vect [badge-github-commit-count]: https://flat.badgen.net/github/commits/hoyeungw/vect [//]: <> (Link) [url-npm]: https://npmjs.org/package/@vect/vector-mapper [url-pp]: https://packagephobia.now.sh/result?prev=@vect/vector-mapper [url-github]: https://github.com/hoyeungw/vect ##### Map through each element of an array. #### Features - **Mapper** map an array and return a new array - **Mutate** map an array and return the array itself #### Install ```console $ npm install @vect/vector-mapper ``` #### Usage ```js ``` #### Meta [LICENSE (MIT)](LICENSE)