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

Method constructor

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

Source from the content-addressed store, hash-verified

27
28export class SetCollection extends Collection {
29 constructor(value) {
30 // eslint-disable-next-line no-constructor-return
31 return isCollection(value) && !isAssociative(value) ? value : SetSeq(value);
32 }
33}
34
35Collection.Keyed = KeyedCollection;

Callers

nothing calls this directly

Calls 3

isCollectionFunction · 0.90
isAssociativeFunction · 0.90
SetSeqClass · 0.90

Tested by

no test coverage detected