cachaito
4/5/2019 - 10:46 AM

Check if name is in string

 const prefix = /myName/g.test(toTestString) ? 'A-' : 'B-';