SOURCE

const arr = [1,2,3,4,5,6,7]
for (let i of arr) {
    if(i === 4){
        return false
    }
    console.log(i)
}
console 命令行工具 X clear

                    
>
console