3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-19 15:30:00 +00:00
zeppelin/backend/src/utils/isScalar.ts

4 lines
212 B
TypeScript
Raw Normal View History

export function isScalar(value: unknown): value is string | number | boolean | null | undefined {
return value == null || typeof value === "string" || typeof value === "number" || typeof value === "boolean";
}