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

Method constructor

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

Source from the content-addressed store, hash-verified

23
24export class Seq extends Collection {
25 constructor(value) {
26 // eslint-disable-next-line no-constructor-return
27 return value === undefined || value === null
28 ? emptySequence()
29 : isImmutable(value)
30 ? value.toSeq()
31 : seqFromValue(value);
32 }
33
34 toSeq() {
35 return this;

Callers

nothing calls this directly

Calls 4

isImmutableFunction · 0.90
emptySequenceFunction · 0.85
seqFromValueFunction · 0.85
toSeqMethod · 0.65

Tested by

no test coverage detected