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