(v: any)
| 38 | } |
| 39 | |
| 40 | export 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 | |
| 49 | export function isBigNumberObject(val: any): val is Dictionary<any> { |
| 50 | if (!(val instanceof Object) || !val) { |
no test coverage detected
searching dependent graphs…