Quick helper module
This commit is contained in:
parent
99a3b57cf6
commit
836beda422
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user