JS Encontre quebra de primeira linha na string

var firstLine = theString.split('\n')[0];
Delightful Dove