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

ES6 | gauhar's blog #10

Open
GauharChan opened this issue Sep 3, 2019 · 0 comments
Open

ES6 | gauhar's blog #10

GauharChan opened this issue Sep 3, 2019 · 0 comments

Comments

@GauharChan
Copy link
Owner

https://gauhar.gitee.io/2019/09/03/es6%E7%AC%94%E8%AE%B0/

变量的解构赋值数组解构:根据索引位置赋值。解构赋值的规则是,只要等号右边的值不是对象或数组,就先将其转为对象。由于undefined和null无法转为对象,所以对它们进行解构赋值,都会报错。 只要某种数据结构具有 Iterator 接口,都可以采用数组形式的解构赋值,可以解构数组的属性 1234567// 数组解构let [foo] = ['a','aa']console.log(foo); /

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

No branches or pull requests

1 participant