Methods
(static) avg(data) → {Number}
Average
Parameters:
Name | Type | Description |
---|---|---|
data |
Array | Array of objects that contain a value property |
Returns:
- Type
- Number
(static) count(data) → {Number}
Count
Parameters:
Name | Type | Description |
---|---|---|
data |
Array | Array of objects that contain a value property |
Returns:
- Type
- Number
(static) first(data)
First
Parameters:
Name | Type | Description |
---|---|---|
data |
Array | Array of objects that contain a value property |
Returns:
The first elements "value" property value
(static) last(data)
Last
Parameters:
Name | Type | Description |
---|---|---|
data |
Array | Array of objects that contain a value property |
Returns:
The last elements "value" property value
(static) max(data) → {Number}
Maximum
Parameters:
Name | Type | Description |
---|---|---|
data |
Array | Array of objects that contain a value property |
Returns:
- Type
- Number
(static) min(data) → {Number}
Minimum
Parameters:
Name | Type | Description |
---|---|---|
data |
Array | Array of objects that contain a value property |
Returns:
- Type
- Number
(static) sum(data) → {Number}
Sum
Parameters:
Name | Type | Description |
---|---|---|
data |
Array | Array of objects that contain a value property |
Returns:
- Type
- Number