https://github.com/iterable-iterator/map
:arrow_right: Iterable mapping functions for JavaScript
https://github.com/iterable-iterator/map
Last synced: about 1 year ago
JSON representation
:arrow_right: Iterable mapping functions for JavaScript
- Host: GitHub
- URL: https://github.com/iterable-iterator/map
- Owner: iterable-iterator
- License: agpl-3.0
- Created: 2021-04-27T14:50:42.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-12T02:12:38.000Z (about 1 year ago)
- Last Synced: 2025-04-12T03:23:20.823Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://iterable-iterator.github.io/map
- Size: 2.23 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:arrow_right: [@iterable-iterator/map](https://iterable-iterator.github.io/map)
==
Iterable mapping functions for JavaScript.
See [docs](https://iterable-iterator.github.io/map/index.html).
> :warning: Depending on your environment, the code may require
> `regeneratorRuntime` to be defined, for instance by importing
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).
```js
import {truth} from '@functional-abstraction/operator';
import {map} from '@iterable-iterator/map';
map( truth , [ 0 , 1 , null , undefined , "A" ] ) ; // F T F F T
import {mul} from '@functional-abstraction/operator';
import {zip} from '@iterable-iterator/zip';
import {count} from '@iterable-iterator/count';
import {starmap} from '@iterable-iterator/map';
starmap( mul , zip( count( 0 , 1 ) , count( 0 , 1 ) ) ) ; // 0 1 4 9 16 25 36 ...
import {range} from '@iterable-iterator/range';
import {pick} from '@iterable-iterator/map';
pick("ABCD", range(2)); // A B
```
[](https://raw.githubusercontent.com/iterable-iterator/map/main/LICENSE)
[](https://www.npmjs.org/package/@iterable-iterator/map)
[](https://github.com/iterable-iterator/map/actions/workflows/ci.yml?query=branch:main)
[](https://github.com/iterable-iterator/map/network/dependencies)
[](https://github.com/iterable-iterator/map/issues)
[](https://www.npmjs.org/package/@iterable-iterator/map)
[](https://codeclimate.com/github/iterable-iterator/map/issues)
[](https://codeclimate.com/github/iterable-iterator/map/trends/churn)
[](https://codecov.io/gh/iterable-iterator/map)
[](https://codeclimate.com/github/iterable-iterator/map/trends/technical_debt)
[](https://iterable-iterator.github.io/map/source.html)
[](https://bundlephobia.com/result?p=@iterable-iterator/map)