Function script::dom::bindings::import::module::jsapi::JS::IsArrayObject1

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

Determine whether |obj| 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.