Share via


Object.getTypeName Function

Returns a string that identifies the run-time type name of an object.

var typeNameVar = Object.getTypeName(instance);

Arguments

Term

Definition

instance

The object to return the run-time type name for.

Returns

A string that identifies the run-time type name of instance.

Remarks

Use the getTypeName function to determine the run-time type name of an object. The type name is returned as a string representing the fully qualified type name.

Example

The following code example demonstrates how to use the getTypeName function to discover the name of an object's type.

See Also

Reference

Object Type Extensions

Other Resources

Language Reference