Entity
    Preparing search index...
    • If the specified key is not already associated with a value in this weak map, computes its value using the given mapping function and enters it into this map.

      Type Parameters

      • K extends WeakKey
      • V

      Parameters

      • map: WeakMap<K, V>

        map from which to get the key's value or compute and associate

      • key: K

        key for which to get the value or with which the computed value is to be associated

      • mappingFunction: (key: K) => V

        function to compute a value for key

      Returns V