Merge pull request #516 from dblboy/patch-1

Fix typo
This commit is contained in:
Ilya Kantor 2017-04-20 23:28:30 +02:00 committed by GitHub
commit 29242121a2

View file

@ -144,7 +144,7 @@ let obj = {
0: "test" // same as "0": "test"
}
// bot alerts access the same property (the number 0 is converted to string "0")
// both alerts access the same property (the number 0 is converted to string "0")
alert( obj["0"] ); // test
alert( obj[0] ); // test (same property)
```