Answers for "adding paragraphs with foreach in angular docx.js"

1

adding paragraphs with foreach in angular docx.js

...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), []),
Posted by: Guest on January-25-2022

Code answers related to "TypeScript"

Browse Popular Code Answers by Language