@umbraco-cms/backoffice
    Preparing search index...
    • Creates a debounced version of the provided function that delays execution until after the specified wait time has elapsed since the last invocation.

      Type Parameters

      • T extends (...args: any[]) => any

      Parameters

      • fn: T

        The function to debounce

      • ms: number = 0

        Delay in milliseconds (default: 0)

      Returns UmbDebouncedFunction<T>

      A debounced function with a cancel method