Skip to content

Commit

Permalink
Merge pull request XPoet#18 from YangFong/patch-1
Browse files Browse the repository at this point in the history
docs: 修改数组方法参数标识
  • Loading branch information
XPoet authored Oct 20, 2022
2 parents dbf4401 + 19a21f6 commit 9cf4c22
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@

### 删除元素

- 删除数组最后的元素 `array.pop(item)`
- 删除数组首位的元素 `array.shift(item)`
- 删除指定索引位置的元素 `array.splice(start, number)`
- 删除数组最后的元素 `array.pop()`
- 删除数组首位的元素 `array.shift()`
- 删除指定索引位置的元素 `array.splice(start, deleteCount)`
例如:
```js
let myArray2 = [1, 2, 3, 4, 5];
Expand Down

0 comments on commit 9cf4c22

Please sign in to comment.