findIndex(object => { return object.id === 'b'; }); console.log(index); // 1. 我们传递给 Array.findIndex 方法的函数被数组中的每个元素调用,直到它返回一个真 ...
確定! 回上一頁