:: Developer Documentation Request Request Type: Correction Gecko Version: unspecified Technical Contact: :: Details Is that not redundant? Why not `x = Number(x);` on line 2 then `return x;` on line 4? I'm guessing there's some quirk I'm not aware of.
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
That's good information but not the problem I reported. I'll reduce it to this: For what x does "Number(x) !== +x" hold true? If none, then why not "return x;" instead of "return Number(x);"?
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
You need to log in before you can comment on or make changes to this bug.