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