UNPKG

foremark

Version:

A technology for writing semi-plain text documents that extends upon the concept of Markdeep.

20 lines 526 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Lazy = /** @class */ (function () { function Lazy(factory) { this.factory = factory; } Object.defineProperty(Lazy.prototype, "value", { get: function () { if (!this.x) { this.x = [this.factory()]; } return this.x[0]; }, enumerable: true, configurable: true }); return Lazy; }()); exports.Lazy = Lazy; //# sourceMappingURL=lazy.js.map