MCPcopy Create free account
hub / github.com/immutable-js/immutable-js / collectionClass

Function collectionClass

src/Operations.js:944–950  ·  view source on GitHub ↗
(collection)

Source from the content-addressed store, hash-verified

942}
943
944function collectionClass(collection) {
945 return isKeyed(collection)
946 ? KeyedCollection
947 : isIndexed(collection)
948 ? IndexedCollection
949 : SetCollection;
950}
951
952function makeSequence(collection) {
953 return Object.create(

Callers 3

groupByFactoryFunction · 0.85
partitionFactoryFunction · 0.85
flatMapFactoryFunction · 0.85

Calls 2

isKeyedFunction · 0.90
isIndexedFunction · 0.90

Tested by

no test coverage detected