• Checks if a value is a Function

    Example

    Call some unknown function

    if(isFunction<void, [string]>(value)) {
    value("arg");
    }

    Returns

    true if value is a Function, otherwise false

    Type Parameters

    Parameters

    • value: unknown

      the value to check

    Returns value is T

Generated using TypeDoc