Skip to content

Commit 9eb914d

Browse files
committed
docs(types): edit array
1 parent 1b0b7b8 commit 9eb914d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/types/array.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ arr.length // 1001
124124

125125
上面代码表示,数组的数字键不需要连续,`length`属性的值总是比最大的那个整数键大`1`。另外,这也表明数组是一种动态的数据结构,可以随时增减数组的成员。
126126

127-
`length`属性是可写的。如果人为设置一个小于当前成员个数的值,该数组的成员会自动减少到`length`设置的值。
127+
`length`属性是可写的。如果人为设置一个小于当前成员个数的值,该数组的成员数量会自动减少到`length`设置的值。
128128

129129
```javascript
130130
var arr = [ 'a', 'b', 'c' ];

0 commit comments

Comments
 (0)