@buildable/events
Version:
Custom Events for Buildable
8 lines (7 loc) • 313 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.stringify = exports.sleep = void 0;
const sleep = (n) => new Promise(res => setTimeout(res, n));
exports.sleep = sleep;
const stringify = (v) => v && typeof v === "object" ? JSON.stringify(v) : v;
exports.stringify = stringify;