| ||||||||||||
SummaryRetrieves the number of elements in an array object. | ||||||||||||
SyntaxJSBool JS_GetArrayLength(JSContext *cx, JSObject *obj, jsint *lengthp);
| ||||||||||||
DescriptionJS_GetArrayLength reports the number of elements in an array object, obj . If the number of elements can be determined, JS_GetArrayLength reports the number of elements in lengthp and returns JS_TRUE . Otherwise, it sets lengthp to NULL and returns JS_FALSE .
| ||||||||||||
See Also
|