SOURCE

function isBigEnough(value, index, array) {
  if (index === 0) {
    delete array[2];
  }
  console.log(`${index}: ${value}`);
  return value > 12;
}
let arr = [11, 12, 13];
console.log(arr.find(isBigEnough));
console.log(arr);
console 命令行工具 X clear

                    
>
console