src/index.js
function padToEven(value) {
  var a = value; // eslint-disable-line

  if (typeof a !== 'string') {
    throw new Error(`[ethjs-util] while padding to even, value must be string, is currently ${typeof a}, while padToEven.`);
  }

  if (a.length % 2) {
    a = `0${a}`;
  }

  return a;
}
function padToEven(value) {
  var a = value; // eslint-disable-line

  if (typeof a !== 'string') {
    throw new Error(`[ethjs-util] while padding to even, value must be string, is currently ${typeof a}, while padToEven.`);
  }

  if (a.length % 2) {
    a = `0${a}`;
  }

  return a;
}
function padToEven ( value ) { var a = value ; // eslint-disable-line if ( typeof a !== 'string' ) { throw new Error ( ` ${ typeof a } ` ) ; } if ( a . length % 2 ) { a = ` ${ a } ` ; } return a ; }
Pads a `String` to have an even length
@param {String} value
@return {String} output
Pads a String to have an even length