Interface ThrottleOptions

interface ThrottleOptions {
    leading?: boolean;
    trailing?: boolean;
}

Properties

Properties

leading?: boolean

Should function be invoked immediately on first call to throttled function

trailing?: boolean

Should function be called after given time