Skip to content

Commit 75a0f09

Browse files
committed
fix: 合并代码
2 parents 96acbbd + 7c3e131 commit 75a0f09

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/basic-concept/expressions/operators/detructing-assignment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ let { foo, bar } = example();
567567

568568
```js
569569
// 参数是一组有次序的值
570-
function f({x, y, z}) { ... }
570+
function f([x, y, z]) { ... }
571571
f([1, 2, 3]);
572572

573573
// 参数是一组无次序的值
@@ -625,7 +625,7 @@ map.set('first', 'hello');
625625
map.set('second', 'world!');
626626

627627
for (let [key, value] of map) {
628-
console.log(ket + ' is ' + value);
628+
console.log(key + ' is ' + value);
629629
}
630630
// first is hello
631631
// second is world

docs/standard-built-in-objects/indexed-collections/array/array.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ console.log(a.length);
164164

165165
| 方法 | 描述 |
166166
| :---------------- | :--------------------------------------------------------------- |
167-
| `Array.form()` | 从一个类似数组或可迭代对象中创建一个新的数组实例。 |
167+
| `Array.from()` | 从一个类似数组或可迭代对象中创建一个新的数组实例。 |
168168
| `Array.isArray()` | 用于判断指定值是否为数组。 |
169169
| `Array.of()` | 创建一个具有可变数量参数的新数组实例,而不考虑参数的数量或类型。 |
170170

0 commit comments

Comments
 (0)