@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) • 951 B
JavaScript
import _newArrowCheck from"babel-runtime/helpers/newArrowCheck";import isDeepEqual from"fast-deep-equal";import{curry}from"flow-static-land/lib/Fun";import{isLastIndex}from"@jumpn/utils-array";var _this$2=void 0,get=function(e,r){return _newArrowCheck(this,_this$2),r[e]}.bind(void 0),get$1=curry(get),_this$3=void 0,hasKey=function(e,r){return _newArrowCheck(this,_this$3),Object.prototype.hasOwnProperty.call(r,e)}.bind(void 0),hasKey$1=curry(hasKey),_this$1=void 0,getInRecur=function(e,r,t){return _newArrowCheck(this,_this$1),isLastIndex(r,e)?get$1(r[e],t):hasKey$1(r[e],t)?getInRecur(e+1,r,get$1(r[e],t)):void 0}.bind(void 0),getIn=function(e,r){return _newArrowCheck(this,_this$1),0===e.length?void 0:getInRecur(0,e,r)}.bind(void 0),getIn$1=curry(getIn),_this=void 0,hasIn=function(e,r,t){return _newArrowCheck(this,_this),isDeepEqual(getIn$1(e,t),r)}.bind(void 0),hasIn$1=curry(hasIn);export default hasIn$1;
//# sourceMappingURL=hasIn.js.map