MCPcopy Index your code
hub / github.com/zxlie/FeHelper / isBigNumberLike

Function isBigNumberLike

apps/json-format/format-lib.js:2314–2319  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

2312 }
2313
2314 function isBigNumberLike(value) {
2315 return value && typeof value === 'object' &&
2316 typeof value.s === 'number' &&
2317 typeof value.e === 'number' &&
2318 Array.isArray(value.c);
2319 }
2320
2321 function getBigNumberDisplayString(value) {
2322 if (typeof value === 'bigint') {

Callers 3

_safeStringifyFunction · 0.70
getTypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected