for of loop break

const arr = [1, 2, 3];

for (const el of arr) {
   if (el === 3) break;
   console.log(el)
}

//Result
//1
//2