code: function isLooselyOneOf(x) {
      for (var _len4 = arguments.length, types = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
        types[_key4 - 1] = arguments[_key4];
      }
  
      return types.some(function (type) {
        return isType(type, x) || (0, _object.instanceOf)(x, type);
      });
    }
docs: Resolves/normalizes a type name from either a string or a constructor.
  @function module:object.toTypeRef
  @param type {Function|String} - String or function representing a type.
  @returns {String}
  @todo write tests for this function.