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()

mergeWith()

Returns a copy of the collection with the remaining collections merged in, calling the merger function whenever an existing value is encountered.

A functional alternative to collection.mergeWith() which will also work with plain Objects and Arrays.

;