aureooms-js-collections-chainmapdeprecated

Collections library for JavaScript

Usage no npm install needed!

<script type="module">
  import aureoomsJsCollectionsChainmap from 'https://cdn.skypack.dev/aureooms-js-collections-chainmap';
</script>

README

js-collections-chainmap

Python's chainmap data structure for JavaScript. Parent is js-collections.

let A = dict( [ [ "x" , "A" ] ] ) ;
let B = dict( [ [ "x" , "B" ] , [ "y" , "B" ] ] ) ;
let C = dict( [ [ "x" , "C" ] , [ "y" , "C" ] , [ "z" , "C" ] ] ) ;

let M = chainmap( A , B , C ) ;

M.get( "x" ) ; // "A"
M.get( "y" ) ; // "B"
M.get( "z" ) ; // "C"

NPM license NPM version Build Status Coverage Status Dependencies Status devDependencies Status Code Climate NPM downloads per month GitHub issues Documentation