str.splitlines
String method that splits a string at line boundaries, returns a list of strings.
'foo\nbar\n'.splitlines() // returns ['foo', 'bar']