All files / src uintArrayAsNumber.ts

100% Statements 4/4
100% Branches 0/0
100% Functions 1/1
100% Lines 4/4
1 2 3 4 5 6 7 8 9 105x       5x 4x     5x  
import {
  fromArray, BigInteger,
} from 'big-integer';
 
export const uintArrayAsNumber = (uintArray: Uint8Array | Uint16Array | Uint32Array): BigInteger => (
  fromArray(Array.from(uintArray), 256)
);
 
export default uintArrayAsNumber;