I have an array of strings in javascript. I want to join the elements and create a single string. Now at a particular length, I want to divide the string (say in 3 parts) and create a new array with 3 elements.
firstArray = [
'Hello, this is line one of the array sentence',
'Hello, this is line two of the array sentance'
];
// Output - secondArray = ["Hello, this is line one of"," the array sentence Hello, this is","line two of the array sentance"]