Home > @shopware-pwa/helpers > debounce

# debounce() function

Debouce helper to invoke a method with a delay

Signature:

export declare function debounce<T extends (...args: any[]) => any>(fn: T, delay?: number): T;

# Parameters

Parameter Type Description
fn T
delay number

Returns:

T