github-pages-deploy-action/src/util.ts
2020-01-11 20:26:08 -05:00

8 lines
272 B
TypeScript

/** Utility function that checks to see if a value is undefined or not.
* @param {*} value = The value to check.
* @returns {boolean}
*/
export function isNullOrUndefined(value: any): boolean {
return typeof value === "undefined" || value === null || value === "";
}