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