Creates throttled function that returns cached value

  • Type Parameters

    • T

    Parameters

    • ms: number

      Minimum time between updates

    • f: () => T

      Function to throttle

    Returns () => T

    Function returning latest value