MCPcopy Create free account
hub / github.com/zxlie/FeHelper / isBigNumberLike

Function isBigNumberLike

apps/json-format/json-auto-utils.js:15–24  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

13 const PRESERVED_INTEGER_KEY_PREFIX = '__FH_PRESERVE_INTEGER_KEY__';
14
15 function isBigNumberLike(value) {
16 return (
17 value !== null &&
18 value !== undefined &&
19 typeof value === 'object' &&
20 typeof value.s === 'number' &&
21 typeof value.e === 'number' &&
22 Array.isArray(value.c)
23 );
24 }
25
26 function rebuildBigNumberFromParts(value) {
27 const sign = value.s < 0 ? '-' : '';

Callers 3

isJSONContainerFunction · 0.70
safeStringifyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected