(value)
| 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 ? '-' : ''; |
no outgoing calls
no test coverage detected