Skip to main content

apply

Function apply 

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

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

MDN documentation