mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
15 lines
327 B
JavaScript
15 lines
327 B
JavaScript
async function f() {
|
|
const result = typeof fn === 'function' ? await fn() : null;
|
|
}
|
|
|
|
(async function() {
|
|
console.log(
|
|
await (true ? Promise.resolve("A") : Promise.resolve("B"))
|
|
);
|
|
})()
|
|
|
|
async function f2() {
|
|
await (spellcheck && spellcheck.setChecking(false));
|
|
await spellcheck && spellcheck.setChecking(false)
|
|
}
|