Skip to content

iterable-iterator/mapping

Repository files navigation

Mapping library for JavaScript. See docs. Parent is js-library.

import {constant} from '@iterable-iterator/mapping' ;
constant('ab', 1); // ['a', 1] ['b', 1]

import {inverse} from '@iterable-iterator/mapping' ;
import {enumerate} from '@iterable-iterator/zip';
inverse(enumerate('ab')); // ['a', 0] ['b', 1]

// You can convert to and from Object and Map
import {toObject, fromObject, toMap, fromMap} from '@iterable-iterator/mapping' ;
toObject(mapping) -> Object
fromObject(Object) -> mapping
toMap(mapping) -> Map
fromMap(Map) -> mapping

License Version Tests Dependencies GitHub issues Downloads

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