Javascript String lines()

Description

Javascript String lines()


/**//from  ww  w.  ja v  a 2 s . co m
* Some helpfull snippets
*/
String.prototype.lines = function() { return this.split(/\r*\n/); }



PreviousNext

Related