Function adjustedInterval

  • Like setInterval but will adjust the timeout value to account for runtime

    Parameters

    • cb: Function

      Callback function that will be ran

    • ms: number

      Run function ever x seconds

    Returns (() => void)

      • (): void
      • Returns void