A simple immutable map of arrays, without events. It can store multiple values under the same key.
For a fancier approaches, consider ofArrayMutable, ofCircularMutable or ofSetMutable.
Type of items
New instance
let m = mapSimple();m = m.add(`hello`, 1, 2, 3); // Adds numbers under key `hello`m = m.delete(`hello`); // Deletes everything under `hello`const hellos = m.get(`hello`); // Get list of items under `hello` Copy
let m = mapSimple();m = m.add(`hello`, 1, 2, 3); // Adds numbers under key `hello`m = m.delete(`hello`); // Deletes everything under `hello`const hellos = m.get(`hello`); // Get list of items under `hello`
A simple immutable map of arrays, without events. It can store multiple values under the same key.
For a fancier approaches, consider ofArrayMutable, ofCircularMutable or ofSetMutable.