repeatTokens function ✓ 100.0%
Last updated: 2026-02-24T21:07:57.585Z
Metrics
LOC: 6
Complexity: 4
Params: 2
Coverage: 100.0% (4/4 lines, 20352x executed)
Signature
repeatTokens(values: string[], weight: number): : string[]
Source Code
function repeatTokens(values: string[], weight: number): string[] {
if (weight <= 0 || values.length === 0) return [];
const output: string[] = [];
for (let i = 0; i < weight; i++) output.push(...values);
return output;
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| buildFeatureText | calls |