MCPcopy
hub / github.com/immutable-js/immutable-js / constructor

Method constructor

src/Seq.js:107–118  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

105
106export class IndexedSeq extends Seq {
107 constructor(value) {
108 // eslint-disable-next-line no-constructor-return
109 return value === undefined || value === null
110 ? emptySequence()
111 : isCollection(value)
112 ? isKeyed(value)
113 ? value.entrySeq()
114 : value.toIndexedSeq()
115 : isRecord(value)
116 ? value.toSeq().entrySeq()
117 : indexedSeqFromValue(value);
118 }
119
120 static of(/*...values*/) {
121 return IndexedSeq(arguments);

Callers

nothing calls this directly

Calls 8

isCollectionFunction · 0.90
isKeyedFunction · 0.90
isRecordFunction · 0.90
emptySequenceFunction · 0.85
indexedSeqFromValueFunction · 0.85
entrySeqMethod · 0.65
toIndexedSeqMethod · 0.65
toSeqMethod · 0.65

Tested by

no test coverage detected