lib/schema.js
function equalType (a, b) {
  if (Array.isArray(a) && Array.isArray(b)) {
    if (0 === a.length || 0 === b.length) {
      return true;
    }

    return equalType(a[0], b[0]);
  }

  if ('null' == a || 'null' == b) {
    return true;
  }

  return a == b;
}
function equalType (a, b) {
  if (Array.isArray(a) && Array.isArray(b)) {
    if (0 === a.length || 0 === b.length) {
      return true;
    }

    return equalType(a[0], b[0]);
  }

  if ('null' == a || 'null' == b) {
    return true;
  }

  return a == b;
}
function equalType ( a , b ) { if ( Array . isArray ( a ) && Array . isArray ( b ) ) { if ( 0 === a . length || 0 === b . length ) { return true ; } return equalType ( a [ 0 ] , b [ 0 ] ) ; } if ( 'null' == a || 'null' == b ) { return true ; } return a == b ; }
Determines if two types are equal
Determines if two types are equal