Skip to content

Commit 99e98da

Browse files
committed
Clarify sentence in Chapter 6
Closes marijnh#366
1 parent 0b2336a commit 99e98da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

06_object.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,9 @@ console.log("toString" in Object.create(null));
494494
// → false
495495
```
496496

497-
Because property names must be strings, this still doesn't help when
498-
your _key_ values are of some other type.
497+
Object ((property)) names must be strings. If you need a map whose
498+
keys can't easily be converted to strings—such as objects—you cannot
499+
use an object as your map.
499500

500501
{{index "Map class"}}
501502

0 commit comments

Comments
 (0)