Repeat()

Returns a Seq.Indexed of value repeated times times. When times is not defined, returns an infinite Seq of value.

Repeat<T>(value: T, times?: number): Seq.Indexed<T>

Example

Repeat('foo') // ['foo','foo','foo',...] Repeat('bar',4) // ['bar','bar','bar','bar']
This documentation is generated from immutable.d.ts. Pull requests and Issues welcome.