Consider this code
const response = await fetch(\'\'); const responseJson = await response.json(); responseJson = _.sortBy(responseJson, \"number
You can use Promise.all() to run all the promises in your array.
Promise.all()
responseJson = await Promise.all(_.map(responseJson, (channel) => { return addEnabledProperty(channel); }));