Skip to main content

is_callable

Function is_callable 

Source
pub fn is_callable(h: &JsHost, v: &Value) -> bool
Expand description

Whether h.get(v) is any callable kind. A Proxy is callable exactly when its target is (10.5: the [[Call]] slot is installed only for a callable target), so typeof and every is_callable guard agree on one answer.