Function mozjs::jsapi::IsArrayObject

source ยท
pub unsafe extern "C" fn IsArrayObject(
    cx: *mut JSContext,
    value: Handle<Value>,
    isArray: *mut bool,
) -> bool
Expand description

Determine whether |value| is an Array object or a wrapper around one. (An ES6 proxy whose target is an Array object, e.g. |var target = [], handler = {}; Proxy.revocable(target, handler).proxy|, is not considered to be an Array.)

On success set |*isArray| accordingly and return true; on failure return false.