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

js 剩余rest参数 展开运算符 严格模式 存储属性描述符 #43

Open
0xtokobin opened this issue Feb 20, 2023 · 0 comments
Open
Labels

Comments

@0xtokobin
Copy link
Collaborator

0xtokobin commented Feb 20, 2023

问chatgpt可以学会

展开运算符:

函数传参 复制数组 对象合并 创建新数组

需要注意的是,展开运算符只能用于可迭代对象,例如数组、对象和字符串。使用展开运算符时需要注意语法和语境,例如在函数参数中使用展开运算符时,必须保证展开运算符后面的变量是函数的最后一个参数。

@0xtokobin 0xtokobin added the es6 label Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant