toolish - v0.2.5
    Preparing search index...

    Function getOrAddEntry

    • 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.

      Type Parameters

      • K
      • V

      Parameters

      Returns V

      Simple multimap-like behaviour:

      getOrAddEntry(mapOfArrays, key, []).push(value)