code: function _validateTypeValue(v) {
    // can be a string or an empty object
    if(_isString(v) || _isEmptyObject(v)) {
      return;
    }
  
    // must be an array
    var isValid = false;
    if(_isArray(v)) {
      // must contain only strings
      isValid = true;
      for(var i = 0; i < v.length; ++i) {
        if(!(_isString(v[i]))) {
          isValid = false;
          break;
        }
      }
    }
  
    if(!isValid) {
      throw new JsonLdError(
        'Invalid JSON-LD syntax; "@type" value must a string, an array of ' +
        'strings, or an empty object.', 'jsonld.SyntaxError', {value: v});
    }
  }
docs: Throws an exception if the given value is not a valid @type value.
  
  @param v the value to check.