• Create a debounced version of the given function.

    Parameters

    • fn: Function
    • timeout: number

    Returns Function