Docs (v5)
  • v5
  • v4.3.7
  • v3.8.2
PlaygroundBrowser extensionQuestionsGitHub

Immutable.js

List
Map
OrderedMap
Set
OrderedSet
Stack
Range()
Repeat()
Record
Record.Factory
Seq
Seq.Keyed
Seq.Indexed
Seq.Set
Collection
Collection.Keyed
Collection.Indexed
Collection.Set
ValueObject
OrderedCollection
fromJS()
is()
hash()
isImmutable()
isCollection()
isKeyed()
isIndexed()
isAssociative()
isOrdered()
isValueObject()
isSeq()
isList()
isMap()
isOrderedMap()
isStack()
isSet()
isOrderedSet()
isRecord()
get()
has()
remove()
set()
update()
getIn()
hasIn()
removeIn()
setIn()
updateIn()
merge()
mergeWith()
mergeDeep()
mergeDeepWith()

Repeat()

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

Method signature

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

Note: Repeat is a factory function and not a class, and does not use the new keyword during construction.

;