mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
4 lines
151 B
JavaScript
4 lines
151 B
JavaScript
async function inc(x) { return x + 1 }
|
|
const p = inc(1)
|
|
const arrow = async (x) => (await inc(x)) * 10
|
|
return [typeof p.then, await p, await arrow(2)]
|