O'Reilly logo
  • Patrick Toy thinks this is interesting:

console.log(lyrics.split('\n').slice(0,3));

From

Cover of Functional Programming in JavaScript

Note

Won't split the string, did you mean to split on a "space" character (e.g. " ")?