minor fixes
This commit is contained in:
parent
7dc2a3c79d
commit
afbd71d634
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue