@sapphire/utilities
Version:
Common JavaScript utilities for the Sapphire Community
15 lines (12 loc) • 391 B
JavaScript
;
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// src/lib/lazy.ts
function lazy(cb) {
let defaultValue;
return () => defaultValue != null ? defaultValue : defaultValue = cb();
}
__name(lazy, "lazy");
exports.lazy = lazy;
//# sourceMappingURL=lazy.cjs.map
//# sourceMappingURL=lazy.cjs.map