The lodash method kebabCase exported as a standalone Node.js module for converting strings to kebab-case format
Overall
score
68%
Evaluation — 68%
↑ 1.08xAgent success when using this tile
Create a small utility for working with numeric score data. It should make it easy to aggregate round scores, create milestone checkpoints, and apply bonus points without mutating inputs.
total, average, boundedTotal, and roundedAverage for an array of numeric rounds, rounding the average to the provided decimal precision. @testboundedTotal stays at that maximum; when it falls below a minimum boundary, it stays at that minimum. @test
Boundaries are inclusive, and precision is a non-negative integer representing decimal places.randomizer function for deterministic tests and leaving the original array untouched. @test@generates
/**
* Summarize numeric round scores with bounds and rounding.
* @param {number[]} rounds
* @param {{ minTotal: number, maxTotal: number, precision: number }} options
* @returns {{ total: number, average: number, boundedTotal: number, roundedAverage: number }}
*/
function summarizeRounds(rounds, options) {}
/**
* Build milestone checkpoints between start and end using a positive step.
* @param {number} start
* @param {number} end
* @param {number} step
* @returns {number[]}
*/
function buildMilestones(start, end, step) {}
/**
* Apply an in-range random integer bonus to each score.
* @param {number[]} scores
* @param {{ min: number, max: number }} bonusRange
* @param {() => number} [randomizer]
* @returns {number[]}
*/
function applyBonus(scores, bonusRange, randomizer) {}
module.exports = {
summarizeRounds,
buildMilestones,
applyBonus,
};Provides numeric helpers for aggregation, bounding, randomization, and sequence generation.
Install with Tessl CLI
npx tessl i tessl/npm-lodash-kebabcasedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10