作为Array类型实例的对象的length属性设置或返回该数组中元素的数量。该值是一个无符号的32位整数,在数值上总是大于数组中的最高索引。
let array = [1, 2, 3]; console.log(array.length);
输出= 3
javascript higher-order-functions
higher-order-functions ×1
javascript ×1