MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1bjjkm6/arejsdevsactuallysane/kvsmkd0/?context=3
r/ProgrammerHumor • u/jarulsamy • Mar 20 '24
554 comments sorted by
View all comments
Show parent comment
8
I guess so.
But since RegExp is a class, and not a primitive, it doesn't seem impossible for its constructor to check something like typeof param === "string".
typeof param === "string"
View all comments
Show parent comment
8
u/Antrikshy Mar 20 '24
I guess so.
But since RegExp is a class, and not a primitive, it doesn't seem impossible for its constructor to check something like
typeof param === "string".