TypeScript Break In Loop Control

The break statement in loop controls helps to come out from loop like for loop, for in loop, while loop and do while loop when specific condition meets.

Syntax

Note: The <= could be anything that would fit the purpose ex. >, == or whatever.

TypeScript Break In Loop Example 1

Try it Yourself