Quick helper module

This commit is contained in:
shockrah 2025-04-24 20:45:34 -07:00
parent 99a3b57cf6
commit 836beda422

6
api/src/common.ts Normal file
View 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
}