Is it safe to assume strict comparison in a JavaScript switch statement?
Answers
Answered by
0
❤️❤️ please follow me
I'm just wondering if there is anything official in JavaScript that says the switch statement will use strict comparison such that 0 !== false, but I can't find anything myself, and I'm not sure if this will work well in different JavaScript engines. Does anybody know if the comparison done by a switch statement is guaranteed to be strict?
Similar questions