Serialization functions for the String datatype - Node.js String

Node.js examples for String:String Value

Description

Serialization functions for the String datatype

Demo Code


/**/*from ww  w .j a  v a  2s.  com*/
 *  Serialization functions for the String datatype.
 */
String.prototype.serialize = function()
{
    return '<string>' + this + '</string>';
}

Related Tutorials