Сплит текст по новой линии JavaScript
myText.split(/\n/)
Frail Fox
myText.split(/\n/)
let string = "Hi\nHow are you?"
let newstrings = string.split("\n"); // [ "Hi", "How are you?" ]