Keyable
Only the following types can be used as a key in a map
or on an entity
.
null
. Ifundefined
is used as a key, it will be treated asnull
- Integers. Note that not all numbers are supported. If a floating point number with a decimal point is used as a key, it will be rounded to the nearest integer closest to zero.
- Assets
- Booleans
- Categories
- Colors
- Entities
- Flags
- Keycodes
- Strings
- Symbols