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

Class KeyedSeq

src/Seq.js:87–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87export class KeyedSeq extends Seq {
88 constructor(value) {
89 // eslint-disable-next-line no-constructor-return
90 return value === undefined || value === null
91 ? emptySequence().toKeyedSeq()
92 : isCollection(value)
93 ? isKeyed(value)
94 ? value.toSeq()
95 : value.fromEntrySeq()
96 : isRecord(value)
97 ? value.toSeq()
98 : keyedSeqFromValue(value);
99 }
100
101 toKeyedSeq() {
102 return this;
103 }
104}
105
106export class IndexedSeq extends Seq {
107 constructor(value) {

Callers 2

constructorMethod · 0.90
sortFactoryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected