Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

精读《Rest vs Spread 语法》 #447

Closed
ascoders opened this issue Oct 30, 2022 · 2 comments
Closed

精读《Rest vs Spread 语法》 #447

ascoders opened this issue Oct 30, 2022 · 2 comments

Comments

@ascoders
Copy link
Owner

ascoders commented Oct 30, 2022

本周聊聊 Rest vs Spread syntax in JavaScript,同时聊聊解构的坑。


精读《Rest vs Spread 语法》

@hua03
Copy link

hua03 commented Nov 1, 2022

weekly/261.精读《Rest vs Spread 语法》.md at master · ascoders/weekly

const obj = {
    a: 1,
    b: get() { return 2 }
}
const newObj = { ...obj }

这里举例的语法有错误

@ascoders
Copy link
Owner Author

ascoders commented Nov 1, 2022

@hua03 已修复:get b() { return 2 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants