Skip to main content
Version: 3.27.2

RateCounter.prototype.increment

Increment the given entry in the RateCounter instance with the given delta value.

Syntax

increment(entry, delta)

Parameters

  • entry : string
    • The name of the entry to look up
  • delta : number
    • The amount to increment the entry by

Return value

Returns undefined.

Exceptions

  • TypeError
    • Thrown if the provided entry value can not be coerced into a string
    • Thrown if the provided delta value is not a positive, finite number.