R
Reactiflux

pepega페페가 – 16-05 May 3

pepega페페가 – 16-05 May 3

Ppepega페페가5/3/2022
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.
UUUnknown User5/4/2022
6 Messages Not Public
Sign In & Join Server To View

Looking for more? Join the community!

R
Reactiflux

pepega페페가 – 16-05 May 3

Join Server