github-pages-deploy-action/src/util.ts

8 lines
272 B
TypeScript
Raw Normal View History

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
export function isNullOrUndefined(value: any): boolean {
return typeof value === "undefined" || value === null || value === "";
}