MCPcopy Index your code
hub / github.com/dataease/SQLBot / toConsumableArray_toConsumableArray

Function toConsumableArray_toConsumableArray

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

Source from the content-addressed store, hash-verified

57305 for (var i = 0, a = Array(o); i < o; i++) a[i] = s[i]
57306 return a
57307 }
57308 function toConsumableArray_toConsumableArray(s) {
57309 return (
57310 (function arrayWithoutHoles_arrayWithoutHoles(s) {
57311 if (Array.isArray(s)) return arrayLikeToArray_arrayLikeToArray(s)
57312 })(s) ||
57313 (function iterableToArray_iterableToArray(s) {
57314 if (
57315 ('undefined' != typeof Symbol && null != s[Symbol.iterator]) ||
57316 null != s['@@iterator']
57317 )
57318 return Array.from(s)
57319 })(s) ||
57320 (function unsupportedIterableToArray_unsupportedIterableToArray(s, o) {
57321 if (s) {
57322 if ('string' == typeof s) return arrayLikeToArray_arrayLikeToArray(s, o)
57323 var i = {}.toString.call(s).slice(8, -1)
57324 return (
57325 'Object' === i && s.constructor && (i = s.constructor.name),
57326 'Map' === i || 'Set' === i
57327 ? Array.from(s)
57328 : 'Arguments' === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)
57329 ? arrayLikeToArray_arrayLikeToArray(s, o)
57330 : void 0
57331 )
57332 }
57333 })(s) ||
57334 (function nonIterableSpread_nonIterableSpread() {
57335 throw new TypeError(
57336 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
57337 )
57338 })()
57339 )
57340 }
57341 function typeof_typeof(s) {
57342 return (

Callers 2

createLineElementFunction · 0.85
flattenCodeTreeFunction · 0.85

Calls 3

isArrayMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected