Sections

@calvinbonner/minifw API Reference

Version 0.2.1

helpers/repeat

function repeat

repeat(count: number, callback: object): string

Repeats a string-producing callback a fixed number of times and concatenates the result.

count

The number of times to invoke the callback.

callback

Called for each iteration with the current index.

Returns:

The concatenated string output.