@mathias @filedescriptor
Given
a = Number(1);
Is there a way to get the primitive value of a without valueOf being called?
-
-
Thanks, perfect! I'm only dealing with small integers, so that's no problem.
@filedescriptor -
Number(String(x)) …is the new… JSON.parse(JSON.stringify(x))
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.