Skip to content

Commit

Permalink
Merge pull request ascoders#161 from xuhongbo/patch-1
Browse files Browse the repository at this point in the history
Update 105.精读《What's new in javascript》.md
  • Loading branch information
ascoders authored Jun 3, 2019
2 parents ab6978d + f37d496 commit 3659978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 105.精读《What's new in javascript》.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const entries = Object.entries(object);

```js
const object = { x: 42, y: 50, abc: 9001 }
const result Object.fromEntries(
const result = Object.fromEntries(
Object.entries(object)
.filter(([ key, value]) => key.length === 1)
.map(([ key, value ]) => [ key, value * 2])
Expand Down

0 comments on commit 3659978

Please sign in to comment.