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

Function defaultConverter

src/fromJS.js:48–51  ·  view source on GitHub ↗
(k, v)

Source from the content-addressed store, hash-verified

46}
47
48function defaultConverter(k, v) {
49 // Effectively the opposite of "Collection.toSeq()"
50 return isIndexed(v) ? v.toList() : isKeyed(v) ? v.toMap() : v.toSet();
51}

Callers

nothing calls this directly

Calls 5

isIndexedFunction · 0.90
isKeyedFunction · 0.90
toListMethod · 0.80
toMapMethod · 0.80
toSetMethod · 0.80

Tested by

no test coverage detected