Repeat()

Repeat()

返回一个valueSeq.Indexed 重复times次数。当times没有定义时,返回一个无限Seqvalue

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

示例

Repeat('foo') // ['foo','foo','foo',...] Repeat('bar',4) // ['bar','bar','bar','bar']