src/utils/co.js
async function every(jobs) {
  const result = await Promise.all(jobs);

  for (const item of result) {
    if (!item)
      return false;
  }

  return true;
}
async function every(jobs) {
  const result = await Promise.all(jobs);

  for (const item of result) {
    if (!item)
      return false;
  }

  return true;
}
async function every ( jobs ) { const result = await Promise . all ( jobs ) ; for ( const item of result ) { if ( ! item ) return false ; } return true ; }
Execute each promise and
have them pass a truth test.
@method
@param {Promise[]} jobs
@returns {Promise}
Execute each promise and have them pass a truth test .