MCPcopy Create free account
hub / github.com/dataease/SQLBot / keyedSeqFromValue

Function keyedSeqFromValue

frontend/public/swagger-ui-bundle.js:1696–1711  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

1694 return ee || (ee = new ArraySeq([]))
1695 }
1696 function keyedSeqFromValue(s) {
1697 var o = Array.isArray(s)
1698 ? new ArraySeq(s).fromEntrySeq()
1699 : isIterator(s)
1700 ? new IteratorSeq(s).fromEntrySeq()
1701 : hasIterator(s)
1702 ? new IterableSeq(s).fromEntrySeq()
1703 : 'object' == typeof s
1704 ? new ObjectSeq(s)
1705 : void 0
1706 if (!o)
1707 throw new TypeError(
1708 'Expected Array or iterable object of [k, v] entries, or keyed object: ' + s
1709 )
1710 return o
1711 }
1712 function indexedSeqFromValue(s) {
1713 var o = maybeIndexedSeqFromValue(s)
1714 if (!o) throw new TypeError('Expected Array or iterable object of values: ' + s)

Callers 2

KeyedSeqFunction · 0.85
concatFactoryFunction · 0.85

Calls 3

isIteratorFunction · 0.85
hasIteratorFunction · 0.85
isArrayMethod · 0.45

Tested by

no test coverage detected