How to await a forEach's callback function?

前端 未结 0 1927
终归单人心
终归单人心 2021-01-13 15:47

I have the following code

var glob = require(\'glob\');
var path = require(\'path\');

async function f() {
    //segment 1
    glob.sync(\'./*.js\').forEach(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题