Hi,
In PHP, I can use the strpbrk
function to determine if a certain string contains a certain set of characters. Is there a way to do that in JavaScript?
TIA.
Edit: for those who may know JS but not PHP, strpbrk
takes an input string and a string containing what you want to match as its arguments, and returns a string starting from the first character found if a match if found, or false
if one isn't.