inspect :: String |
For more information on inspect methods, see Object.inspect.
Examples
'I\'m so happy.'.inspect(); // -> '\'I\\\'m so happy.\'' (displayed as 'I\'m so happy.' in an alert dialog or the console)
'I\'m so happy.'.inspect(true); // -> '"I'm so happy."' (displayed as "I'm so happy." in an alert dialog or the console) |
Prototype API 1.5.0 - prototypejs.org