minor fixes

This commit is contained in:
Ilya Kantor 2022-04-15 08:05:27 +03:00
parent 7dc2a3c79d
commit afbd71d634

View file

@ -6,7 +6,7 @@ By specification, only two primitive types may serve as object property keys:
- string type, or - string type, or
- symbol type. - symbol type.
Otherwise, if one uses another type, such as number, it's autoconverted to string. So that `obj[1]` is the same as `obj["1"]` and `obj[true]` is the same as `obj["true"]`. Otherwise, if one uses another type, such as number, it's autoconverted to string. So that `obj[1]` is the same as `obj["1"]`, and `obj[true]` is the same as `obj["true"]`.
Till now we've been using only strings. Till now we've been using only strings.