...array
.map((element: any) => {
let arr: Paragraph[] = [];
arr.push(
//Insert the element into the array
new Paragraph({
text: element,
}),
);
return arr;
})
.reduce((prev: any, curr: any) => prev.concat(curr), []),