MCPcopy Create free account
hub / github.com/apitable/apitable / stringIsNumber

Function stringIsNumber

packages/core/src/model/field/validate_schema/index.ts:45–45  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

43}));
44
45const stringIsNumber = (value: string) => isNaN(Number(value)) === false;
46
47export function enumToArray(en: Object) {
48 const keys = Object.keys(en).filter(k => !stringIsNumber(k));

Callers 1

enumToArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected