Record<K, V>
Key-value mapping type.
Syntax
Record<keyType, valueType>
Description
Defines an object (dictionary) whose keys and values are of specific types.
Example
Loading editor…
Expected output
95
When to use?
Name-to-value mappings (score table, settings).