Consider this code
const response = await fetch(\'\'); const responseJson = await response.json(); responseJson = _.sortBy(responseJson, \"number
How about using partial.js(https://github.com/marpple/partial.js)
It cover both promise and normal pattern by same code.
_p.map([1, 2, 3], async (v) => await promiseFunction());