All files / src uintArrayAsHex.ts

100% Statements 4/4
100% Branches 0/0
100% Functions 2/2
100% Lines 3/3
1 2 3 4 5 6 7 82x     6x     2x  
export const uintArrayAsHex = (array: Uint8Array): string => (
  /* There's weird error where Typescript thinks the Uint16Array has no reduce
   * method but the other two do as well, hence the type alias. */
  array.reduce<string>((str, val) => str + val.toString(16), '')
);
 
export default uintArrayAsHex;