Atom

text.repeat()

Repeats a value.

Signature

text.repeat(value, count)

Parameters

Text and nonnegative signed count.

Returns

String.

Behavior

Allocates the repeated text.

Errors

Negative count or size overflow.

Example

Atom
use text
assert(text.repeat('é', 3) == 'ééé')