Dictionary - an iterable data store
Instantiate with a template type for the key:
const store: Dictionary<string> = new Dictionary<string>(); Copy
const store: Dictionary<string> = new Dictionary<string>();
Protected
Support for / each pattern:
for (const key of store) { const value = store.get(key); ...} Copy
for (const key of store) { const value = store.get(key); ...}
Remove all elements - reset to empty
Check if an item exists - by value
The item required
Check if a key exists
The key required
Get an item by key
The element key
The array of keys in the store
Put a new key/value pair Overwrites an existing key
The key
The value - supports null
Remove an item by key
The key to remove
Report the number of keys in the store
The array of values
Dictionary - an iterable data store
Instantiate with a template type for the key: