pamoja for TypeScript - v0.1.17
    Preparing search index...

    Class Debounce

    Stops a flickering input from acting until it has settled.

    Index
    • Creates a debouncer needing samples agreeing readings to change state.

      Parameters

      • samples: number
      • initial: boolean

      Returns Debounce

    • Returns the settled state without feeding in a reading.

      Returns boolean

    • Feeds a raw reading in and returns the settled state.

      Parameters

      • raw: boolean

      Returns boolean