Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

foreach typescript

example() {
    for (let item of this.items) {
        if (true) {
            return;
        }
    }
    // Do stuff in case forEach has not returned
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #foreach #typescript
ADD COMMENT
Topic
Name
2+2 =