js_sys::Reflect

Function apply

source
pub fn apply(
    target: &Function,
    this_argument: &JsValue,
    arguments_list: &Array,
) -> Result<JsValue, JsValue>
Expand description

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

MDN documentation