lib/strCheck.js
/**
 * Return true if argument passed in is a string. If not, throw an error.
 * strCheck is used in each util function to check if the URI passed in is a string.
 *
 * @param  {string} arg
 * @return {boolean|error}
 */
Return true if argument passed in is a string. If not, throw an error.
strCheck is used in each util function to check if the URI passed in is a string.

@param  {string} arg
@return {boolean|error}
Return true if argument passed in is a string . If not throw an error . strCheck is used in each util function to check if the URI passed in is a string . @param { string } arg @return { boolean|error }
function strCheck(arg) {
  if (typeof arg === 'string') {
    return true;
  } else {
    throw new Error('Argument must be a string, not ' + typeof arg);
  }
}
function strCheck ( arg ) { if ( typeof arg === 'string' ) { return true ; } else { throw new Error ( 'Argument must be a string, not ' + typeof arg ) ; } }
Return true if argument passed in is a string.
Return true if argument passed in is a string .