@sky-mavis/tanto-widget
Version:
Tanto Widget
12 lines (9 loc) • 407 B
JavaScript
;
const notEmpty = value => typeof value !== 'undefined' && value !== null;
const isClient = () => typeof window !== 'undefined';
const getVersionInfo = () => `${'@sky-mavis/tanto-widget'}@${'0.0.5'}`;
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
exports.delay = delay;
exports.getVersionInfo = getVersionInfo;
exports.isClient = isClient;
exports.notEmpty = notEmpty;