☎️ @aureooms/js-mapping
Mapping library for JavaScript. See docs. Parent is @aureooms/js-library.
> import { fromKeys , reflect } from '@aureooms/js-mapping' ;
> import { enumerate } from '@aureooms/js-itertools' ;
> fromKeys( 'ab' , 1 )
[['a', 1], ['b', 1]]
> reflect(enumerate('ab'))
[['a', 0], ['b', 1]]
> Object.fromEntries(reflect(enumerate('ab')))
{ 'a': 0, 'b': 1 }