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

Function _dispatchable

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

Source from the content-addressed store, hash-verified

39598 null != s && s.length >= 0 && '[object Array]' === Object.prototype.toString.call(s)
39599 )
39600 }
39601 function _dispatchable(s, o, i) {
39602 return function () {
39603 if (0 === arguments.length) return i()
39604 var a = arguments[arguments.length - 1]
39605 if (!ca(a)) {
39606 for (var u = 0; u < s.length; ) {
39607 if ('function' == typeof a[s[u]])
39608 return a[s[u]].apply(a, Array.prototype.slice.call(arguments, 0, -1))
39609 u += 1
39610 }
39611 if (
39612 (function _isTransformer(s) {
39613 return null != s && 'function' == typeof s['@@transducer/step']
39614 })(a)
39615 )
39616 return o.apply(null, Array.prototype.slice.call(arguments, 0, -1))(a)
39617 }
39618 return i.apply(this, arguments)
39619 }
39620 }
39621 function _isObject(s) {
39622 return '[object Object]' === Object.prototype.toString.call(s)

Callers 1

Calls 2

caFunction · 0.85
iFunction · 0.70

Tested by

no test coverage detected