quickjs_runtime::quickjs_utils::functions

Function is_function

source
pub unsafe fn is_function(
    context: *mut JSContext,
    obj_ref: &QuickJsValueAdapter,
) -> bool
Expand description

see if an Object is an instance of Function

ยงSafety

When passing a context pointer please make sure the corresponding QuickJsContext is still valid