- 以下描述错误的是?
A.数组对象的find()方法用于找到符合条件的第一个元素。
B. Array.of()可以将数组转换为—组值
C. Array.from()可以将有iterator接口的对象转换为数组
D.数组对象的fill()方法用给定的值填充数组。
选:B
A、 find() 方法返回数组中满足提供的测试函数的第一个元素的值。否则返回 undefined。
const array1 = [5, 12, 8, 130, 44];
const found = array1.
const array1 = [5, 12, 8, 130, 44];
const found = array1.