* This function checks if the input array is a valid array of bigints or numbers * @param inputArray The array to be checked * @returns True if the array is valid, false otherwise
(inputArray: bigint[] | number[])
| 24 | * @returns True if the array is valid, false otherwise |
| 25 | */ |
| 26 | function isValidBigIntOrNumberArray(inputArray: bigint[] | number[]): boolean { |
| 27 | if (typeof inputArray[0] === "bigint") { |
| 28 | return true; |
| 29 | } |
| 30 | else if (typeof inputArray[0] === "number") { |
| 31 | return true; |
| 32 | } |
| 33 | return false; |
| 34 | } |
| 35 | |
| 36 | function isValidAddressArray(inputArray: string[]): boolean { |
| 37 | if (typeof inputArray[0] === "string") { |
no outgoing calls
no test coverage detected