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

Class SetSeq

src/Seq.js:133–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133export class SetSeq extends Seq {
134 constructor(value) {
135 // eslint-disable-next-line no-constructor-return
136 return (
137 isCollection(value) && !isAssociative(value) ? value : IndexedSeq(value)
138 ).toSetSeq();
139 }
140
141 static of(/*...values*/) {
142 return SetSeq(arguments);
143 }
144
145 toSetSeq() {
146 return this;
147 }
148}
149
150Seq.isSeq = isSeq;
151Seq.Keyed = KeyedSeq;

Callers 3

constructorMethod · 0.90
sortFactoryFunction · 0.90
ofMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected