Skip to main content

apply

Function apply 

Source
pub fn apply<T>(
    target: &Function<T>,
    this_argument: &JsValue,
    arguments_list: &Array,
) -> Result<<T as JsFunction>::Ret, JsValue>
where T: JsFunction, Function<T>: ErasableGenericBorrow<Function<fn() -> JsValue>>, <T as JsFunction>::Ret: ErasableGenericOwn<<fn() -> JsValue as JsFunction>::Ret>,
Expand description

The static Reflect.apply() method calls a target function with arguments as specified.

MDN documentation