主题
使用异步函数映射数组
一个处理返回Promise的回调函数的map方法。
import { map } from 'radash' const userIds = [1, 2, 3, 4] const users = await map(userIds, async (userId) => { return await api.users.find(userId) })