SOURCE

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

                    
>
console