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

Class Collection

src/Collection.js:7–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import { isKeyed } from './predicates/isKeyed';
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 {
15 constructor(value) {

Callers 7

intersectMethod · 0.90
unionMethod · 0.90
deleteAllMethod · 0.90
zipWithFactoryFunction · 0.90
isSubsetFunction · 0.90
isSupersetFunction · 0.90
mergeWithSourcesFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected