matrix-js-sdk
    Preparing search index...

    Class MapWithDefault<K, V>

    Type Parameters

    • K
    • V

    Hierarchy

    • Map<K, V>
      • MapWithDefault
    Index
    • Returns the value if the key already exists. If not, it creates a new value under that key using the ctor callback and returns it.

      Parameters

      • key: K

      Returns V