matrix-js-sdk

    Class MapWithDefault<K, V>

    Type Parameters

    • K
    • V

    Hierarchy

    Index

    Constructors

    Methods

    Constructors

    Methods

    • 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

    MMNEPVFCICPMFPCPTTAAATR