Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
forEach loop - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
4y ago
•
7 replies
Aldrin
forEach loop
I want to check if the classList contains
'active
' and add class to a container
, so here i want to break the loop if the 1st element contains the class
, and not loop through all the element
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
little forEach loop question
KP-C
Kevin Powell - Community / front-end
4y ago
loops and forEach
KP-C
Kevin Powell - Community / front-end
3y ago
Get innerHtml with forEach loop
KP-C
Kevin Powell - Community / front-end
3y ago
forEach method
KP-C
Kevin Powell - Community / front-end
4y ago