JSObjectIsFunction

Function JSObjectIsFunction 

Source
pub unsafe extern "C-unwind" fn JSObjectIsFunction(
    ctx: JSContextRef,
    object: JSObjectRef,
) -> bool
Available on crate features JSBase and JSObjectRef only.
Expand description

Tests whether an object can be called as a function.

Parameter ctx: The execution context to use.

Parameter object: The JSObject to test.

Returns: true if the object can be called as a function, otherwise false.

ยงSafety

  • ctx must be a valid pointer.
  • object must be a valid pointer.