pepega페페가 – 16-05 May 3
Hi, how do I check if array contains a char?
I have a string that I want to loop through (it's characters) and check whether an array has any of those characters
const fruit = 'Banana'
const letters = ['A', 'B', 'C', N'];
I want to check every characters of Banana to see if it's found in letters array. If it's found i just want to increment an integer, if it's not, I just want to continue; to next iteration.6 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
This thread hasn’t had any activity in 12 hours, so it’s now locked.
Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/971080181999607878