Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 624 Bytes

File metadata and controls

32 lines (23 loc) · 624 Bytes
hide_title hide_table_of_contents pagination_next pagination_prev

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.