MCPcopy Create free account
hub / github.com/dethcrypto/TypeChain / isBigNumberArray

Function isBigNumberArray

packages/test-utils/src/test.ts:40–47  ·  view source on GitHub ↗
(v: any)

Source from the content-addressed store, hash-verified

38}
39
40export function isBigNumberArray(v: any): v is Array<any> {
41 return (
42 v instanceof Array &&
43 isBigNumber(v[0]) &&
44 // ethers returns array with additional properties on them. We dont wat to treat those as arrays
45 Object.keys(v).length === v.length
46 )
47}
48
49export function isBigNumberObject(val: any): val is Dictionary<any> {
50 if (!(val instanceof Object) || !val) {

Callers 1

typedAssertFunction · 0.85

Calls 1

isBigNumberFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…