C-Level Extensibility > The C-level extensibility API > char *JS_ObjectType() |
Description
Given an object reference, returns a string describing the type of the object. For array objects, the return value is Array.
Arguments
JSObject *obj
Typically, this argument is passed in and converted using JS_ValueToObject().
Returns
A pointer to a null-terminated string. The caller should not free this string when it has finished.