Home / JS / Async Await with Array Assignment
const [user, account] = await Promise.all([
fetch('/user'),
fetch('/account')
])
This page was generated by GitHub Pages. Page last modified: 20/12/22 10:47
Home / JS / Async Await with Array Assignment
const [user, account] = await Promise.all([
fetch('/user'),
fetch('/account')
])
This page was generated by GitHub Pages. Page last modified: 20/12/22 10:47