All files / internalHelpers _numberToHex.js

100% Statements 2/2
100% Branches 2/2
100% Functions 1/1
100% Lines 2/2
1 2 3 4 5 6 7 8 9      160x 160x        
// @flow
 
function numberToHex(value: number): string {
  const hex = value.toString(16)
  return hex.length === 1 ? `0${hex}` : hex
}
 
export default numberToHex