---
title: "Ramiel (@LevPewPew) | Hashnode"
description: "Code stuff. Read the latest articles by Ramiel on Hashnode."
url: "https://hashnode.com/@LevPewPew"
---

@LevPewPew

# Ramiel

@LevPewPew · Melbourne, Australia · Joined March 2021

Code stuff

[Website](https://fullstacklev.com/)

### [Breaking out of a forEach loop in JavaScript](https://levpewpew.hashnode.dev/breaking-out-of-a-foreach-loop-in-javascript?utm_source=hashnode&utm_medium=feed)

In JavaScript we can use the break keyword to immediately stop iterating through a for loop. There is no equivalent for the forEach() loop, which is much more commonly used today. An alternative that will achieve the same behavior is using the every(...

1 min read · [levpewpew.hashnode.dev](https://levpewpew.hashnode.dev/breaking-out-of-a-foreach-loop-in-javascript?utm_source=hashnode&utm_medium=feed)

[Sep 22, 2021](https://hashnode.com/posts/breaking-out-of-a-foreach-loop-in-javascript/614aea5f3a0af204bb9661d5)
