const arrPages = obj.pages; html += "\n
" + obj.name + "\n\n"; Promise.all( arrPages.map( async ( pages ) => { const page_path = pages.path; const page_name = pages.name; const page_label = pages.label; const file_link = dv.fileLink( page_path, false, page_label ); html += "- " + file_link + "\n"; } )); html += "
\n";