JSFiddle - React, Tailwind, and code Playground

by Mike Lin

JavaScript

function a () {
return new Promise((resolve, reject) => resolve(null))
}

async function b() {

  const c = await a() || []
  
  console.log(c)
}

b()