all files / dist/utils/ StringUtils.js

100% Statements 10/10
100% Branches 4/4
100% Functions 4/4
100% Lines 10/10
1 function Ignored     
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19        78×          
"use strict";
var StringUtils = (function () {
    /* istanbul ignore next */ function StringUtils() {
    }
    StringUtils.ensureEndsWithNewline = function (code) {
        if (code[code.length - 1] !== "\n") {
            code += "\n";
        }
        return code;
    };
    StringUtils.isNullOrWhiteSpace = function (str) {
        return typeof str !== "string" || str.trim().length === 0;
    };
    return StringUtils;
}());
exports.StringUtils = StringUtils;
 
//# sourceMappingURL=StringUtils.js.map