angus-c / angus-c/just

just-clone question about cloning regexp

Open
#592 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6.2k
Forks
209
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.