src/lib/index.js
function isTransactionObject(value) {
  if (typeof value !== 'object') { return false; }
  const keys = Object.keys(value);

  if (keys.length > 5) { return false; }
  if (keys.length === 0) { return true; }

  if (keys.length > 0 && isDefined(value.from) || isDefined(value.to) || isDefined(value.data) || isDefined(value.gas) || isDefined(value.gasPrice)) {
    return true;
  }

  return false;
}
function isTransactionObject(value) {
  if (typeof value !== 'object') { return false; }
  const keys = Object.keys(value);

  if (keys.length > 5) { return false; }
  if (keys.length === 0) { return true; }

  if (keys.length > 0 && isDefined(value.from) || isDefined(value.to) || isDefined(value.data) || isDefined(value.gas) || isDefined(value.gasPrice)) {
    return true;
  }

  return false;
}
function isTransactionObject ( value ) { if ( typeof value !== 'object' ) { return false ; } const keys = Object . keys ( value ) ; if ( keys . length > 5 ) { return false ; } if ( keys . length === 0 ) { return true ; } if ( keys . length > 0 && isDefined ( value . from ) || isDefined ( value . to ) || isDefined ( value . data ) || isDefined ( value . gas ) || isDefined ( value . gasPrice ) ) { return true ; } return false ; }
Is the value a transaction object.

@method isTransactionObject
@param {Optional} value the potential tx object
@return {Boolean} isTransactionObject is the object a tx object
Is the value a transaction object .