mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
8 lines
272 B
TypeScript
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 === "";
|
|
}
|