Splitting a block of text, either content of textarea or paragraph or any multiline string, is easily accomplished using the function below. Note the proper parameter for the split for the to work on all devices is /\r?\n/
.
To use the above function to successfully split a textarea or paragraph, line by line, and return an array: let arrLines = funcArrLines(strToSplit);