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

Method constructor

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

Source from the content-addressed store, hash-verified

13
14export class KeyedCollection extends Collection {
15 constructor(value) {
16 // eslint-disable-next-line no-constructor-return
17 return isKeyed(value) ? value : KeyedSeq(value);
18 }
19}
20
21export class IndexedCollection extends Collection {

Callers

nothing calls this directly

Calls 2

isKeyedFunction · 0.90
KeyedSeqClass · 0.90

Tested by

no test coverage detected