code: function isUsableImmutablePrimitive(x) {
      var typeOfX = (0, _typeOf.typeOf)(x);
      return isset(x) && [_String, _Number, _Boolean, _Symbol].some(function (Type) {
        return Type === typeOfX;
      });
    }
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.