2017-01-19 21:18:02 -06:00
|
|
|
async function f() {
|
|
|
|
|
const result = typeof fn === 'function' ? await fn() : null;
|
|
|
|
|
}
|
2017-02-19 23:31:54 +01:00
|
|
|
|
|
|
|
|
(async function() {
|
|
|
|
|
console.log(
|
|
|
|
|
await (true ? Promise.resolve("A") : Promise.resolve("B"))
|
|
|
|
|
);
|
|
|
|
|
})()
|
2017-05-11 18:30:33 -05:00
|
|
|
|
2019-10-15 18:27:39 +03:00
|
|
|
async function f2() {
|
2017-05-11 18:30:33 -05:00
|
|
|
await (spellcheck && spellcheck.setChecking(false));
|
|
|
|
|
await spellcheck && spellcheck.setChecking(false)
|
|
|
|
|
}
|