This is in GoogleSheets, using AppsScript.
Suppose I have a cell in A1 that contains the following value:
Dog Dog
Cat Cat Cat
Lion
I know I can select the entire contents of the cell using .getValue(), but how would I select just the fist line, Dog Dog, or just the second line, Cat Cat Cat? Each line may have multiple words associated to it, so I can't simply split by using the space.