首页 > TAG信息列表 > PromiseAll

[Typescript] 23. Medium - Promise.all

Type the function PromiseAll that accepts an array of PromiseLike objects, the returning value should be Promise<T> where T is the resolved result array. const promise1 = Promise.resolve(3); const promise2 = 42; const promise3 = new Promise<strin