pub unsafe extern "C" fn JS_ObjectIsFunction(
    obj: *mut JSObject
) -> bool
Expand description

Infallible predicate to test whether obj is a function object (faster than comparing obj’s class name to “Function”, but equivalent unless someone has overwritten the “Function” identifier with a different constructor and then created instances using that constructor that might be passed in as obj).