KeyedContainer<K, V> Interface
Package: @esfx/collection-core
Declaration
export interface KeyedContainer<K, V> extends ReadonlyKeyedContainer<K, V>
Methods
[KeyedContainer.delete](key)
Deletes a key and its associated value from the container.
Declaration
[KeyedContainer.delete](key: K): boolean;
Parameters
- key
- K
Returns
true
if the key was found and removed; otherwise, false
.
[KeyedContainer.set](key, value)
Sets a value in the container for the provided key.
Declaration
[KeyedContainer.set](key: K, value: V): void;
Parameters
- key
- K
- value
- V
Returns
void