MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / repeated

Function repeated

cli/src/utils/arrays.ts:23–25  ·  view source on GitHub ↗
(value: T, count: number)

Source from the content-addressed store, hash-verified

21}
22
23export function repeated<T>(value: T, count: number): T[] {
24 return Array.from({ length: count }, () => value)
25}
26
27export class Queue<T> {
28 private _items: T[]

Callers 3

constructorMethod · 0.85
enqueueMethod · 0.85
clearMethod · 0.85

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected