JavaScript-1.5 Reference

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

Groups [ Function ]
Documents [ LXR ID Search ]
Entries [ JS_AliasElement | JS_DefineElement | JS_DeleteElement | JS_GetArrayLength | JS_GetElement | JS_IsArrayObject | JS_LookupElement | JS_NewArrayObject | JS_SetArrayLength | JS_SetElement ]

This page was generated by APIDOC