Object.valueOf¶
Object valueOf ()
Description¶
Retrieves and returns the primitive value of this object.
If the object has no primitive value, returns the object itself. Note that you rarely need to call this method yourself. The JavaScript interpreter automatically invokes it when encountering an object where a primitive value is expected.