Javascript String write()

Description

Javascript String write()


// An easy to use wrapper for response.write

String.prototype.write = function () { 
    response.write(this); //from   w w  w  .  j a v  a 2  s  .c  o  m
    return this;
};

this.write = function(){
 response.write.apply(response, arguments);
    return this;
};

exports.write = write;



PreviousNext

Related