Search
Preparing search index...
The search index is not available
gtools
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
gtools
components/key-value-counter
KeyValueCounter
Class KeyValueCounter
Hierarchy
KeyValueCounter
Index
Constructors
constructor
Properties
data
processed
results
Accessors
length
Methods
add
add
All
get
All
get
Count
get
TopN
process
Constructors
constructor
new
Key
Value
Counter
(
)
:
KeyValueCounter
Returns
KeyValueCounter
Properties
Private
Readonly
data
data
:
{}
= {}
Type declaration
[
key:
string
]:
number
Private
processed
processed
:
boolean
= false
Private
results
results
:
SimpleWrapper
[]
= []
Accessors
length
get
length
(
)
:
number
Returns
number
Methods
add
add
(
item
:
string
)
:
void
Parameters
item:
string
Returns
void
add
All
add
All
(
items
:
readonly
string
[]
)
:
void
Parameters
items:
readonly
string
[]
Returns
void
get
All
get
All
(
)
:
readonly
SimpleWrapper
[]
Returns
readonly
SimpleWrapper
[]
get
Count
get
Count
(
)
:
number
deprecated
use
length
instead
Returns
number
get
TopN
get
TopN
(
count
:
number
)
:
readonly
SimpleWrapper
[]
Parameters
count:
number
Returns
readonly
SimpleWrapper
[]
Private
process
process
(
)
:
void
Returns
void
Modules
components/key-
value-
counter
Key
Value
Counter
constructor
data
processed
results
length
add
add
All
get
All
get
Count
get
TopN
process
Simple
Wrapper
Generated using
TypeDoc
use length instead