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

Function toInt

frontend/src/utils/v1/sql.ts:444–450  ·  view source on GitHub ↗
(a: unknown)

Source from the content-addressed store, hash-verified

442};
443
444const toInt = (a: unknown) => {
445 return typeof a === "number"
446 ? a
447 : typeof a === "string"
448 ? parseInt(a, 10)
449 : Number(a);
450};
451
452const toFloat = (a: unknown) => {
453 return typeof a === "number"

Callers 1

compareQueryRowValuesFunction · 0.85

Calls 1

parseIntFunction · 0.85

Tested by

no test coverage detected