MCPcopy Create free account
hub / github.com/bytebase/bytebase / isNullOrUndefined

Function isNullOrUndefined

frontend/src/utils/util.ts:335–337  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

333};
334
335export const isNullOrUndefined = (value: unknown) => {
336 return value === null || value === undefined;
337};
338
339export const onlyAllowNumber = (value: string) => {
340 return value === "" || /^\d+$/.test(value);

Callers 3

SingleResultViewInnerFunction · 0.90
isValidDatabaseNameFunction · 0.90
compareQueryRowValuesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected