If the given map contains an entry for the given key, returns its value, otherwise adds a new entry with the given value and returns that.
Simple multimap-like behaviour:
getOrAddEntry(mapOfArrays, key, []).push(value) Copy
getOrAddEntry(mapOfArrays, key, []).push(value)
If the given map contains an entry for the given key, returns its value, otherwise adds a new entry with the given value and returns that.