AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
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:
JS_AliasElement
JS_DefineElement
JS_DeleteElement
JS_GetArrayLength
JS_GetElement
JS_IsArrayObject
JS_LookupElement
JS_NewArrayObject
JS_SetArrayLength
JS_SetElement

[sh-index] Back to list of manuals