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