HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by aktenlage | Hacker News Reader
Full thread
aktenlage
·
What's the purpose of the +x at the end?
View on HN
undecidabot
·
The unary plus implicitly converts an expression to a number, which calls `valueOf` for non-primitive values.
aktenlage
·
Thank you
emaro
·
I think to implicitly trigger the valueOf function.
aktenlage
·
Thank you
Reply on news.ycombinator.com