mozilla

Compare Revisions

Object.prototype.toString()

Change Revisions

Revision 61296:

Revision 61296 by evilpie on

Revision 61297:

Revision 61297 by evilpie on

Title:
toString
toString
Slug:
JavaScript/Reference/Global_Objects/Object/toString
JavaScript/Reference/Global_Objects/Object/toString
Tags:
JavaScript, "JavaScript Reference", "String Methods"
JavaScript, "JavaScript Reference", "String Methods"
Content:

Revision 61296
Revision 61297
nn28            <p>
28            JavaScript 1.029              JavaScript 1.0
30            </p>
31            <p>
32              JavaScript 1.8.5 <code>toString.call(undefined)</co
 >de> and <code>toString.call(null)</code> behaviour changed.
33            </p>
nn62    <p>
63      Since JavaScript 1.8.5 <code>toString</code> called on <cod
 >e>null</code> returns <code>[object <em>Null</em>]</code>, and <c
 >ode>undefined</code> returns <code>[object <em>Undefined</em>]</c
 >ode>. See <a href="/Using_toString_to_detect_object_type" title="
 >Using toString to detect object type">Using toString to detect ob
 >ject type</a>.
64    </p>
t106    <h4>t114    <h4 name="Using_toString_to_detect_object_type">
107      Using toString to detect object types115      Using toString to detect object type

Back to History