Re:WTFJS?
by gracenotes on Saturday February 13, 2010 @02:35AM
(#1122704)
The behavior there is a result of the 'new' operator. typeof new String("foo") is specified to be "object", and it is extensible (String("foo") is not). Both == and === on two object-types return true if both refer to the same thing. More generally, when two types are the same, == has the same behavior as ===.
[ Parent
| on HN ]
There are no comments on this comment yet.