Returns an iterable of entries in the map.
A clone of the dict.
Returns an iterable of key, value pairs for every entry in the map.
Returns the first entry (or entries if otherwise specified) in the dict.
Returns the first key (or keys if otherwise specified) in the dict.
Checks that all of the specified keys exist in the dict.
The keys to check for.
Checks that any of the specified keys exist in the dict.
The keys to check for.
Whether the dict has a set limit.
Returns an iterable of keys in the map
Returns the last entry (or entries if otherwise specified) in the dict.
Returns the last key (or keys if otherwise specified) in the dict.
Applies a function to each entry in the dict and returns 2 dicts, the first containing entries that passed the function and the second containing the failed entries.
The function to apply to the dict.
The passed and failed dicts.
Returns a random entry (or entries if otherwise specified) in the dict.
Returns a random key (or keys if otherwise specified) in the dict.
Sets a limit for the number of entries the dict can have. Note: this cannot be changed once set. Attempting to will throw an error.
The number of entries allowed for the dict.
Updates the values of the current dict with the specified dict, settings the values in place.
The dict to update with.
Returns an iterable of values in the map
Generated using TypeDoc
Dict (or Dictionary) is an extended Map with additional helper methods used for manager caches in the PteroJS library.