JSPM

@iterable-iterator/map

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 123
  • Score
    100M100P100Q112933F
  • License AGPL-3.0

Iterable mapping functions for JavaScript

Package Exports

  • @iterable-iterator/map

Readme

➡️ @iterable-iterator/map

Iterable mapping functions for JavaScript. See docs.

⚠️ Depending on your environment, the code may require regeneratorRuntime to be defined, for instance by importing regenerator-runtime/runtime.

import {zip, count} from '@aureooms/js-itertools';
import {truth, mul} from '@aureooms/js-operator';
import {map, starmap} from '@iterable-itertools/map';
map( truth , [ 0 , 1 , null , undefined , "A" ] ) ; // F T F F T
starmap( mul , zip( count( 0 , 1 ) , count( 0 , 1 ) ) ) ; // 0 1 4 9 16 25 36 ...

License Version Tests Dependencies Dev dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size