lib/utils.js
function (options) {
    return options.moduleRoot && options.remapModule && options.ignorePatterns
      && type(options.moduleRoot) === TYPES.STRING
      && type(options.remapModule) === TYPES.STRING
      && (
        (type(options.ignorePatterns) === TYPES.STRING || type(options.ignorePatterns) === TYPES.REGEXP)
        ||
        (
          type(options.ignorePatterns) === TYPES.ARRAY
          && options.ignorePatterns.every(function (pattern) {
            return type(pattern) === TYPES.STRING || type(pattern) === TYPES.REGEXP;
          })
        )
      );
  }
function (options) {
    return options.moduleRoot && options.remapModule && options.ignorePatterns
      && type(options.moduleRoot) === TYPES.STRING
      && type(options.remapModule) === TYPES.STRING
      && (
        (type(options.ignorePatterns) === TYPES.STRING || type(options.ignorePatterns) === TYPES.REGEXP)
        ||
        (
          type(options.ignorePatterns) === TYPES.ARRAY
          && options.ignorePatterns.every(function (pattern) {
            return type(pattern) === TYPES.STRING || type(pattern) === TYPES.REGEXP;
          })
        )
      );
  }
function ( options ) { return options . moduleRoot && options . remapModule && options . ignorePatterns && type ( options . moduleRoot ) === TYPES . STRING && type ( options . remapModule ) === TYPES . STRING && ( ( type ( options . ignorePatterns ) === TYPES . STRING || type ( options . ignorePatterns ) === TYPES . REGEXP ) || ( type ( options . ignorePatterns ) === TYPES . ARRAY && options . ignorePatterns . every ( function ( pattern ) { return type ( pattern ) === TYPES . STRING || type ( pattern ) === TYPES . REGEXP ; } ) ) ) ; }
Checks for moduleRoot, remapModule, and ignorePatterns at minimum
Also checks to make sure they are the correct type
@param {object} options
@return {bool}
Checks for moduleRoot remapModule and ignorePatterns at minimum Also checks to make sure they are the correct type