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

Function _sliced_to_array

frontend/public/swagger-ui-bundle.js:40265–40314  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

40263 ? !!o[Symbol.hasInstance](s)
40264 : s instanceof o
40265 }
40266 function _sliced_to_array(s, o) {
40267 return (
40268 (function _array_with_holes(s) {
40269 if (Array.isArray(s)) return s
40270 })(s) ||
40271 (function _iterable_to_array_limit(s, o) {
40272 var i =
40273 null == s
40274 ? null
40275 : ('undefined' != typeof Symbol && s[Symbol.iterator]) || s['@@iterator']
40276 if (null != i) {
40277 var a,
40278 u,
40279 _ = [],
40280 w = !0,
40281 x = !1
40282 try {
40283 for (
40284 i = i.call(s);
40285 !(w = (a = i.next()).done) && (_.push(a.value), !o || _.length !== o);
40286 w = !0
40287 );
40288 } catch (s) {
40289 ;((x = !0), (u = s))
40290 } finally {
40291 try {
40292 w || null == i.return || i.return()
40293 } finally {
40294 if (x) throw u
40295 }
40296 }
40297 return _
40298 }
40299 })(s, o) ||
40300 (function _unsupported_iterable_to_array(s, o) {
40301 if (!s) return
40302 if ('string' == typeof s) return _array_like_to_array(s, o)
40303 var i = Object.prototype.toString.call(s).slice(8, -1)
40304 'Object' === i && s.constructor && (i = s.constructor.name)
40305 if ('Map' === i || 'Set' === i) return Array.from(i)
40306 if ('Arguments' === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))
40307 return _array_like_to_array(s, o)
40308 })(s, o) ||
40309 (function _non_iterable_rest() {
40310 throw new TypeError(
40311 'Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
40312 )
40313 })()
40314 )
40315 }
40316 function _type_of(s) {
40317 return s && 'undefined' != typeof Symbol && s.constructor === Symbol ? 'symbol' : typeof s

Callers 1

walkFunction · 0.85

Calls 5

_array_like_to_arrayFunction · 0.85
nextMethod · 0.80
isArrayMethod · 0.45
pushMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected