I want to match below strings for the prefix.
customer
client
agent
If my string contains any of the above, i want to ignore.
let str = "customer_service"
if(!str.startsWith("customer") && !str.startsWith("client") && !str.startsWith("agent"))
return true;
Any easy and effective solution available? Thanks in advance.
let str = 'customer_service'? WIth your code,stris simply assigned the value of a variable calledcustomer_service