修改destructuring

This commit is contained in:
ruanyf
2014-09-24 18:58:13 +08:00
parent 8f9b3bd02e
commit 9d3cc774bc
+2 -2
View File
@@ -84,8 +84,8 @@ var [foo] = null;
var [foo = true] = [];
foo // true
[x, y='b'] = ['a'] // x=3, y='b'
[x, y='b'] = ['a', undefined] // x=3, y='b'
[x, y='b'] = ['a'] // x='a', y='b'
[x, y='b'] = ['a', undefined] // x='a', y='b'
```