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
3 Replies
Aldrin
Aldrin2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Aldrin
Aldrin2y ago
ok let me try Thank you, it worked 👍
Want results from more Discord servers?
Add your server