Closed Xotic750 closed 9 years ago
I'm confused - how does ToNumber
interact with trim
?
Sorry, probably just my bad language. But what we are talking about here is the internal trimming of whitespace when the Number constructor is used as a casting operator.
Number(' 2 ') === 2
So just like with trim, different environments handle internal trimming differently and inconsistently.
After implementing the fix for es6-shim
based on your tests, I totally get it now. Thanks for explaining further!
You're welcome. ;)
See https://github.com/paulmillr/es6-shim/pull/368