JavaScript: The Definitive Guide

24.180. String.toString( ): return the string

ECMAScript v1: Overrides Object.toString( )

24.180.1. Synopsis

string.toString( )

24.180.1.1. Returns

The primitive string value of string. It is rarely necessary to call this method.

24.180.1.2. Throws

TypeError

If this method is invoked on an object that is not a String.

24.180.2. See Also

String.valueOf( )

Категории