MCPcopy Index your code
hub / github.com/immutable-js/immutable-js / constructor

Method constructor

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

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 8

isCollectionFunction · 0.90
isKeyedFunction · 0.90
isRecordFunction · 0.90
emptySequenceFunction · 0.85
keyedSeqFromValueFunction · 0.85
fromEntrySeqMethod · 0.80
toKeyedSeqMethod · 0.65
toSeqMethod · 0.65

Tested by

no test coverage detected