Entry: JS_HasArrayLength (Function)
Summary: Determines if an object has an array length property.
Syntax:
JSBool JS_HasArrayLength(JSContext *cx, JSObject *obj,
jsuint *lengthp);
Description:
JS_HasArrayLength determines if an object, obj, has a length property. If the property exists, JS_HasArrayLength returns the current value of the property in lengthp.
On success, JS_HasArrayLength returns JS_TRUE, and lengthp indicates the current value of the array property. On failure, JS_HasArrayLength returns JS_FALSE, and lengthp is undefined.
See also:
|
|
|