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

Method constructor

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

Source from the content-addressed store, hash-verified

6
7export class Collection {
8 constructor(value) {
9 // eslint-disable-next-line no-constructor-return
10 return isCollection(value) ? value : Seq(value);
11 }
12}
13
14export class KeyedCollection extends Collection {

Callers

nothing calls this directly

Calls 2

isCollectionFunction · 0.90
SeqClass · 0.90

Tested by

no test coverage detected