Skip to content

Commit

Permalink
Merge pull request getify#1147 from scraggo/patch-1
Browse files Browse the repository at this point in the history
minor typo: remove 'be' from 'be become'
  • Loading branch information
getify committed Sep 15, 2017
2 parents cef9f59 + 43ff6d7 commit c4ab888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types & grammar/ch5.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ var a = res.a;
var b = res.b;
```

**Note:** `{ a, b }` is actually ES6 destructuring shorthand for `{ a: a, b: b }`, so either will work, but it's expected that the shorter `{ a, b }` will be become the preferred form.
**Note:** `{ a, b }` is actually ES6 destructuring shorthand for `{ a: a, b: b }`, so either will work, but it's expected that the shorter `{ a, b }` will become the preferred form.

Object destructuring with a `{ .. }` pair can also be used for named function arguments, which is sugar for this same sort of implicit object property assignment:

Expand Down

0 comments on commit c4ab888

Please sign in to comment.