A new ES6 draft is available

Claude Pache claude.pache at gmail.com
Tue Oct 1 14:23:42 PDT 2013


>>> Explicit .toString() calling is rare because verbose, in addition to throwing on null and undefined. People use + ''.
>> 
>> I tend to use `String(x)` (which is equivalent).
> 
> Actually it isn't.  String(x) is specified to call the ToString abstract operation on x which in the current spec./proposal will throw if x is a Symbol value. 

Sorry for for the ambiguity, I meant: equivalent to + ''. 
—Claude


More information about the es-discuss mailing list