THT is in early Beta. We welcome contributors & feedback.

Map

Summary of Map access. See methods below.

// An empty map
let user = {};

// A map with values
let user = {
    name: 'Bob',
    species: 'bobcat'
};

// Access map - dynamic
user['name'];  //= 'Bob'
user['age'];   //= '' (a safe falsey value)

// Access map - strict
user.name;  //= 'Bob'
user.age;   //= ERROR! Key does not exist.