r/ProgrammerHumor • • Mar 20 '24

Meme areJSDevsActuallySane

Post image
14k Upvotes

554 comments sorted by

View all comments

Show parent comment

9

u/Antrikshy Mar 20 '24

One could argue that `new Regexp` should maybe just check the type of the input and error if it is not the expected type,

This is what they were saying. Type checking in JS is a thing.