This is the code snippet. I want to access imagePath array inside for each.
...
const imagePath=[];
             
req.files.images.forEach(async (image) => {
   let extName = path.extname(image.name);
   var dest = path.join(__dirname, '..', 'public', 'images', 'items');
   var imgPath = await saveFile(image, dest, itemName, extName);
   imagePath.push(imgPath); // this line
})
...
 
     
    