UNPKG

ziko

Version:

A versatile JavaScript library offering a rich set of Hyperscript Based UI components, advanced mathematical utilities, interactivity ,animations, client side routing and more ...

3 lines (2 loc) 210 B
export const is_primitive = value => typeof value !== 'object' && typeof value !== 'function' || value === null; export const is_async = fn => fn && fn.constructor && fn.constructor.name === "AsyncFunction";