Agreed, I should have used === instead; though I imagine for Symbol, == and === reliably get optimized to the same native code. I did try this for curiosity’s sake, and it didn’t make any difference in the generated native code.
Agreed, I should have used === instead; though I imagine for Symbol, == and === reliably get optimized to the same native code. I did try this for curiosity’s sake, and it didn’t make any difference in the generated native code.