lifecycle-utils
    Preparing search index...

    Class WeakValueMultiKeyMap<Key, V>

    A utility class that works like a Map, but accepts multiple values as the key for each value, and does not keep strong references to the values (allowing them to be garbage collected).

    When a value is garbage collected, it is automatically removed from the map.

    Type Parameters

    • const Key extends readonly any[]
    • const V extends object
    Index

    Constructors

    Accessors

    Methods

    • Call a function for each entry in the map.

      Parameters

      • callbackfn: (value: V, key: Key, map: this) => void
      • OptionalthisArg: any

      Returns void