JS_IsArrayObject

Determine if a specified object is an Array.

Syntax

bool
JS_IsArrayObject(JSContext *cx, JS::HandleValue value);

bool
JS_IsArrayObject(JSContext *cx, JS::HandleObject obj);
Name Type Description
cx JSContext * A context.
value JS::HandleValue The value to examine.
obj JS::HandleObject The object to examine.

Description

JS_IsArrayObject determines if a specified object, obj or value, is an Array object. If so, JS_IsArrayObject returns true. Otherwise it returns false.

See Also

Document Tags and Contributors

Contributors to this page: arai, fscholz, Jorend, Dria, Nickolay, Tservo
Last updated by: arai,
Hide Sidebar