Update README.md

Minor oversight generating map object. Need square brackets to generate dynamic key.
This commit is contained in:
Miles Burton
2016-10-11 08:44:43 +01:00
committed by GitHub
parent 781f186f90
commit 357cc46da0

View File

@@ -858,7 +858,7 @@ Other Style Guides
// good
[1, 2, 3].map((number, index) => ({
index: number
[index]: number
}));
```