I have this JavaScript row:
var matcherName = new RegExp(filterValueName);
The filterValueName variable has some string but, might be situation when filterValueName is undifined .
My question is how can I know if matcherName was constructed by filterValueName = undifined?