Skip to main content

JS_IsArray

Function JS_IsArray 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_IsArray( ctx: *mut JsContext, val: JsValue, ) -> c_int
Expand description

JS_IsArray: whether the value is an array.

A proxy over an array counts, which is why this goes through the interpreter’s is_array rather than reading the object’s kind.

§Safety

val must be a live JSValue.