conditional-expression.js 326 B

123456789101112131415
  1. async function f() {
  2. const result = typeof fn === 'function' ? await fn() : null;
  3. }
  4. (async function() {
  5. console.log(
  6. await (true ? Promise.resolve("A") : Promise.resolve("B"))
  7. );
  8. })()
  9. async function f() {
  10. await (spellcheck && spellcheck.setChecking(false));
  11. await spellcheck && spellcheck.setChecking(false)
  12. }