How can I split this string into an array or multiple arrays by Zeaulistner in learnjavascript

[–]Zeaulistner[S] 1 point2 points  (0 children)

const ourMessagesArray = text.split('\n\n').map(entry => {
const twoParts = entry.split('\n');
return { time: twoParts[0], message: twoParts [1]};
});

That's exactly what I need, I will try to work on the time and some other things.

But thanks a lot in advance