UNPKG

@truenewx/tnxcore

Version:

互联网技术解决方案:JavaScript核心扩展支持

11 lines (10 loc) 268 B
Object.assign(Boolean.prototype, { toText: function (this: boolean): string | undefined { if (this === true) { return '是'; } else if (this === false) { return '否'; } return undefined; } });