r/programminghorror
•
u/Leonnee
•
Jun 12 '25
•
1
Javascript Javascript is filled with horror
2.4k
Upvotes
View all comments
Show parent comment
107
u/XtremeGoose Jun 12 '25
Exactly what python does. Use the native comparison for those types and if they aren't the same type, throw an error.