mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
docs(async): edit async
This commit is contained in:
+1
-1
@@ -874,7 +874,7 @@ function* entries(obj) {
|
||||
// 非Generator函数的版本
|
||||
function entries(obj) {
|
||||
let arr = [];
|
||||
for (key of Object.keys(obj)) {
|
||||
for (let key of Object.keys(obj)) {
|
||||
arr.push([key, obj[key]]);
|
||||
}
|
||||
return arr;
|
||||
|
||||
Reference in New Issue
Block a user