DEV Community

Discussion on: JavaScript String Matching Methods

Collapse
 
slimdestro profile image
D\sTro

I think you forgot contains() and indexOf()

Collapse
 
mzaini30 profile image
Zen

And findIndex()?

Collapse
 
slimdestro profile image
D\sTro

Will work but you'll need to split the string first