UNPKG

@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) 1.1 kB
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _newArrowCheck=_interopDefault(require("babel-runtime/helpers/newArrowCheck")),isDeepEqual=_interopDefault(require("fast-deep-equal")),Fun=require("flow-static-land/lib/Fun"),utilsArray=require("@jumpn/utils-array"),_this$2=void 0,get=function(e,t){return _newArrowCheck(this,_this$2),t[e]}.bind(void 0),get$1=Fun.curry(get),_this$3=void 0,hasKey=function(e,t){return _newArrowCheck(this,_this$3),Object.prototype.hasOwnProperty.call(t,e)}.bind(void 0),hasKey$1=Fun.curry(hasKey),_this$1=void 0,getInRecur=function(e,t,r){return _newArrowCheck(this,_this$1),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$1),0===e.length?void 0:getInRecur(0,e,t)}.bind(void 0),getIn$1=Fun.curry(getIn),_this=void 0,hasIn=function(e,t,r){return _newArrowCheck(this,_this),isDeepEqual(getIn$1(e,r),t)}.bind(void 0),hasIn$1=Fun.curry(hasIn);module.exports=hasIn$1; //# sourceMappingURL=hasIn.js.map