UNPKG

@drewsonne/maya-dates

Version:

Typescript package to manipulate dates in the Maya Calendar

27 lines 813 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isComment = exports.Comment = void 0; var Comment = (function () { function Comment(content) { this.content = content; } Comment.prototype.merge = function (other) { return new Comment("".concat(this, " ").concat(other)); }; Comment.prototype.empty = function () { return this.content.length == 0; }; Comment.prototype.equals = function (otherComment) { return this.content === otherComment.content; }; Comment.prototype.toString = function () { return this.content; }; return Comment; }()); exports.Comment = Comment; function isComment(c) { return c instanceof Comment; } exports.isComment = isComment; //# sourceMappingURL=comment.js.map