index.js
function someSchemasValidate(propName) {
    return schema[propName].some(function (possibleType) {
      var tempInput = {},
        tempSchema = {},
        tempErrs;

      tempInput[propName] = input[propName];
      tempSchema[propName] = possibleType;
      tempErrs = getErrs({
        input: tempInput,
        schema: tempSchema,
        optional: optional
      });

      return tempErrs.length === 0;
    });
  }
function someSchemasValidate(propName) {
    return schema[propName].some(function (possibleType) {
      var tempInput = {},
        tempSchema = {},
        tempErrs;

      tempInput[propName] = input[propName];
      tempSchema[propName] = possibleType;
      tempErrs = getErrs({
        input: tempInput,
        schema: tempSchema,
        optional: optional
      });

      return tempErrs.length === 0;
    });
  }
function someSchemasValidate ( propName ) { return schema [ propName ] . some ( function ( possibleType ) { var tempInput = { } , tempSchema = { } , tempErrs ; tempInput [ propName ] = input [ propName ] ; tempSchema [ propName ] = possibleType ; tempErrs = getErrs ( { input : tempInput , schema : tempSchema , optional : optional } ) ; return tempErrs . length === 0 ; } ) ; }
used for array schema types where all we need is to pass a single array element
used for array schema types where all we need is to pass a single array element