@parkersoftware/whoson-lib
Version:
Useful whoson related library
16 lines (15 loc) • 446 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
global.isEmpty = function (s) {
return s === undefined || s === null || s.length <= 0;
};
global.isNull = function (o) {
return o === undefined || o === null;
};
global.isNotNull = function (o) {
return o !== undefined && o !== null;
};
global.throwIf = function (condition, message) {
if (condition)
throw new Error(message);
};