@dillonkearns/elm-graphql
Version:
<img src="https://cdn.jsdelivr.net/gh/martimatix/logo-graphqelm/logo.svg" alt="dillonearns/elm-graphql logo" width="40%" align="right">
3 lines (2 loc) • 772 B
JavaScript
import _newArrowCheck from"babel-runtime/helpers/newArrowCheck";import{curry}from"flow-static-land/lib/Fun";import{isLastIndex}from"@jumpn/utils-array";var _this$1=void 0,get=function(e,t){return _newArrowCheck(this,_this$1),t[e]}.bind(void 0),get$1=curry(get),_this$2=void 0,hasKey=function(e,t){return _newArrowCheck(this,_this$2),Object.prototype.hasOwnProperty.call(t,e)}.bind(void 0),hasKey$1=curry(hasKey),_this=void 0,getInRecur=function(e,t,r){return _newArrowCheck(this,_this),isLastIndex(t,e)?get$1(t[e],r):hasKey$1(t[e],r)?getInRecur(e+1,t,get$1(t[e],r)):void 0}.bind(void 0),getIn=function(e,t){return _newArrowCheck(this,_this),0===e.length?void 0:getInRecur(0,e,t)}.bind(void 0),getIn$1=curry(getIn);export default getIn$1;
//# sourceMappingURL=getIn.js.map