Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

use await in for each

files.forEach(async (file) => {
    const contents = await fs.readFile(file, 'utf8')
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #await
ADD COMMENT
Topic
Name
4+6 =