github-pages-deploy-action/lib/util.js

11 lines
377 B
JavaScript
Raw Normal View History

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
2020-01-12 09:26:08 +08:00
/** Utility function that checks to see if a value is undefined or not.
* @param {*} value = The value to check.
* @returns {boolean}
*/
2020-01-12 09:26:08 +08:00
function isNullOrUndefined(value) {
return typeof value === "undefined" || value === null || value === "";
}
2020-01-12 09:26:08 +08:00
exports.isNullOrUndefined = isNullOrUndefined;