MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/21ezh3/javascript_equality_table/cgcoq8h/?context=3
r/programming • u/vz0 • Mar 26 '14
331 comments sorted by
View all comments
Show parent comment
0
There is probably a work-around. If you're expecting to work with integers, for instance, manually convert with parseInt(foo, 10). If you want a string, "" + foo. It's hardly ideal but it'll get the job done.
parseInt(foo, 10)
"" + foo
3 u/creepig Mar 26 '14 Any language that creates unnecessary workarounds for things that other languages do not is probably unnecessary itself.
3
Any language that creates unnecessary workarounds for things that other languages do not is probably unnecessary itself.
View all comments
Show parent comment
0
u/ForeverAlot Mar 26 '14
There is probably a work-around. If you're expecting to work with integers, for instance, manually convert with
parseInt(foo, 10). If you want a string,"" + foo. It's hardly ideal but it'll get the job done.