code: function isOneOf(x) {
      var typeName = (0, _typeOf.typeOf)(x);
  
      for (var _len3 = arguments.length, types = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
        types[_key3 - 1] = arguments[_key3];
      }
  
      return toTypeRefNames(types).some(function (name) {
        return typeName === name;
      });
    }
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.