paint-brush
Rethinking JavaScript: Replace break by going functionalby@joelthoms
16,841 reads
16,841 reads

Rethinking JavaScript: Replace break by going functional

by Joel Thoms5mJanuary 15th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In my last article, <a href="https://hackernoon.com/rethinking-javascript-death-of-the-for-loop-c431564c84a8" target="_blank">Death of the for Loop</a>, I tried to convince you to abandon the <code class="markup--code markup--p-code">for</code> loop for a more functional solution. In return, you raised a great question, “What about <code class="markup--code markup--p-code">break</code>?”

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Rethinking JavaScript: Replace break by going functional
Joel Thoms HackerNoon profile picture
Joel Thoms

Joel Thoms

@joelthoms

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite