code: 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;
  }
docs: Determines if two types are equal