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

Function _curryN

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

Source from the content-addressed store, hash-verified

39904 return _nth(-1, s)
39905 })
39906 const Ba = Fa
39907 function _curryN(s, o, i) {
39908 return function () {
39909 for (var a = [], u = 0, _ = s, w = 0, x = !1; w < o.length || u < arguments.length; ) {
39910 var C
39911 ;(w < o.length && (!_isPlaceholder(o[w]) || u >= arguments.length)
39912 ? (C = o[w])
39913 : ((C = arguments[u]), (u += 1)),
39914 (a[w] = C),
39915 _isPlaceholder(C) ? (x = !0) : (_ -= 1),
39916 (w += 1))
39917 }
39918 return !x && _ <= 0 ? i.apply(this, a) : _arity(Math.max(0, _), _curryN(s, a, i))
39919 }
39920 }
39921 const $a = _curry2(function curryN(s, o) {
39922 return 1 === s ? _curry1(o) : _arity(s, _curryN(s, [], o))

Callers 1

Calls 2

_isPlaceholderFunction · 0.85
_arityFunction · 0.85

Tested by

no test coverage detected