how to get a boolena result of regex match in js code example Example: js match true false /match/.test('string match') // true