Quick helper module
This commit is contained in:
6
api/src/common.ts
Normal file
6
api/src/common.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export function values_present(values: any[]) : boolean {
|
||||
/**
|
||||
* Function determines if there are any undefined or null values present
|
||||
*/
|
||||
return values.filter((val) => val === undefined || val === null).length > 0
|
||||
}
|
||||
Reference in New Issue
Block a user