@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) • 900 B
JavaScript
;function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _newArrowCheck=_interopDefault(require("babel-runtime/helpers/newArrowCheck")),Fun=require("flow-static-land/lib/Fun"),utilsArray=require("@jumpn/utils-array"),_this$1=void 0,get=function(e,t){return _newArrowCheck(this,_this$1),t[e]}.bind(void 0),get$1=Fun.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=Fun.curry(hasKey),_this=void 0,getInRecur=function(e,t,r){return _newArrowCheck(this,_this),utilsArray.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=Fun.curry(getIn);module.exports=getIn$1;
//# sourceMappingURL=getIn.js.map