UNPKG

ziko-wrapper

Version:

integrate zikojs elements within other ui framework like vue react solidjs svelte astro ...

13 lines (11 loc) 220 B
const fun = (type) => { if (type === 'async') { return new Promise((resolve) => { resolve(1) }) } return 1 } console.log(fun()) // 1 const a = await fun('async') console.log(a)