JS: Nested Map
Nested Map
const nestedMap = new Map([ [ "tall", new Map([ ["old", new Map([["John", 59], ["Mary", 68]])], ["young", new Map([["Joe", 37], ["Smith", 34]])], ]), ], [ "short", new Map([ ["old", new Map([["Jane", 22], ["Connie", 28]])], ["young", new Map([["Jenny", 67], ["David", 69]])], ]), ], ]); console.log(nestedMap.get("tall").get("old").get("Mary") === 68);
JavaScript, Map Object
- JS: Map Object Tutorial
- JS: Difference, Object vs Map
- JS: Literal Expression for Map
- JS: Nested Map
- JS: Iterate Map Object
- JS: Convert Object to Map π
- JS: Convert Map to Object π
- JS: Map Equality π
- JS: Map Filter π
- JS: Swap Key Value of Map π
- JS: Sort Map π
- JS: Truncate Map π
- JS: Map Substract π
- JS: How Map Determines Uniqueness of Keys
- JS: Map Object
- JS: Map Constructor
- JS: Map.prototype