rtf-stream-parser
Version:
Stream Transform class to tokenize RTF, and another to de-encapsulate text or HTML
16 lines (15 loc) • 412 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isNum = exports.isStr = exports.isDef = void 0;
function isDef(thing) {
return typeof thing !== 'undefined';
}
exports.isDef = isDef;
function isStr(thing) {
return typeof thing === 'string';
}
exports.isStr = isStr;
function isNum(thing) {
return typeof thing === 'number';
}
exports.isNum = isNum;