I saw the following code ` if (typeof regExp.source.flags == 'string') { return regExp.source.flags; }` But shouldn't source just be a string? Will it have a flags attribute? I hope someone can answer my question, thank you very much
I saw the following code
if (typeof regExp.source.flags == 'string') { return regExp.source.flags; }But shouldn't source just be a string? Will it have a flags attribute?
I hope someone can answer my question, thank you very much