• Call function with parameters

    Example

    const f = Math.random();
    Jodit.modules.Helpers.call(f > 0.5 ? Math.ceil : Math.floor, f);

    Type Parameters

    • T extends any[]

    • R

    Parameters

    • func: ((...args: T) => R)
        • (...args: T): R
        • Parameters

          • Rest ...args: T

          Returns R

    • Rest ...args: T

    Returns R

Jodit PRO

If you like Jodit - try Jodit PRO