function threshold(obj) {
  var ret;

  switch (typeof obj) {
    case 'string':
      ret = bytes(obj) < 150 ? 150 : bytes(obj);
      break;
    case 'number':
      ret = obj < 150 ? 150 : obj;
      break;
    case 'boolean':
      ret = obj === false ? false : 150;
      break;
    default:
      throw new Error('threshold must be String|Number|Boolean');
  }

  return ret;
}
// Can be a string, number, or boolean
Can be a string, number, or boolean
Can be a string number or boolean
function threshold(obj) {
  var ret;
  switch (typeof obj) {
    case 'string':
      ret = bytes(obj) < 150 ? 150 : bytes(obj);
      break;
    case 'number':
      ret = obj < 150 ? 150 : obj;
      break;
    case 'boolean':
      ret = obj === false ? false : 150;
      break;
    default:
      throw new Error('threshold must be String|Number|Boolean');
  }
  return ret;
}
function threshold ( obj ) { var ret ; switch ( typeof obj ) { case 'string' : ret = bytes ( obj ) < 150 ? 150 : bytes ( obj ) ; break ; case 'number' : ret = obj < 150 ? 150 : obj ; break ; case 'boolean' : ret = obj === false ? false : 150 ; break ; default : throw new Error ( 'threshold must be String|Number|Boolean' ) ; } return ret ; }
Can be a string, number, or boolean
Can be a string number or boolean