Skip to main content
Deno 2 is finally here 🎉️
Learn more

Promise join

// npm install psjoin
// const join = require('psjoin')
import join from 'https://esm.sh/psjoin@1.0.0'
const a = Promise.resolve(1)
const b = Promise.resolve(2)
const c = Promise.resolve(4)
join(a, b, c, (a, b, c) => console.log(a + b + c))
// 7