The lodash method sum exported as a module for computing the sum of values in an array.
Overall
score
96%
Truncate string
Uses lodash truncate
100%
100%
Length parameter handling
100%
100%
Omission parameter handling
100%
100%
Separator parameter handling
100%
100%
Direct API usage
100%
100%
Join array elements
Uses lodash.join
100%
100%
Separator handling
100%
100%
Empty array handling
100%
100%
Single element arrays
100%
100%
Sorted index by iteratee
Uses sortedIndexBy
100%
100%
Correct iteratee function
100%
100%
Proper function signature
100%
100%
Returns correct value
100%
100%
Find last index
Uses findLastIndex
0%
100%
Predicate function usage
0%
100%
Iteratee shorthand
0%
100%
Handles all criteria types
0%
100%
Create chain
Chain initialization
100%
100%
Filter invalid logs
100%
100%
Group by userId
100%
100%
Transform grouped data
100%
100%
Calculate totals
100%
100%
Sort by points
100%
100%
Limit results
100%
100%
Value extraction
100%
100%
Random number
Uses _.random
100%
100%
Integer generation
100%
100%
Float generation
100%
100%
Uses _.sample
100%
100%
Correct bounds handling
100%
100%
Pad string
Uses _.pad
0%
100%
Uses _.padStart
100%
100%
Uses _.padEnd
100%
100%
Custom padding characters
100%
100%
Chain iterator support
Chain initialization
0%
0%
Filter implementation
0%
80%
Map implementation
33%
80%
Sort implementation
66%
80%
Iterator protocol support
40%
60%
Value extraction handling
20%
40%
Group by criterion
Uses lodash.groupBy
100%
100%
Property-based grouping
100%
100%
Function-based grouping
100%
100%
Returns correct structure
100%
100%
Minimum by iteratee
Uses minBy function
100%
100%
Property iteratee
100%
100%
Function iteratee
100%
100%
Correct return values
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-lodash-sum