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.3 kB
import _newArrowCheck from"babel-runtime/helpers/newArrowCheck";import{curry}from"flow-static-land/lib/Fun";import _Object$keys from"babel-runtime/core-js/object/keys";import _toConsumableArray from"babel-runtime/helpers/toConsumableArray";var _this$2=void 0,get=function(r,e){return _newArrowCheck(this,_this$2),e[r]}.bind(void 0),get$1=curry(get),_this$3=void 0,getKeys=function(r){return _newArrowCheck(this,_this$3),Array.isArray(r)?[].concat(_toConsumableArray(r.keys())):_Object$keys(r)}.bind(void 0),_this$4=void 0,hasKey=function(r,e){return _newArrowCheck(this,_this$4),Object.prototype.hasOwnProperty.call(e,r)}.bind(void 0),hasKey$1=curry(hasKey),_this$1=void 0,haveSameProps=function(r,e){_newArrowCheck(this,_this$1);var t=getKeys(r);return t.length===getKeys(e).length&&t.every(function(t){return _newArrowCheck(this,_this$1),hasKey$1(t,e)&&get$1(t,r)===get$1(t,e)}.bind(this))}.bind(void 0),haveSameProps$1=curry(haveSameProps),_this=void 0,xor=function(r,e){return _newArrowCheck(this,_this),Boolean(Number(r)^Number(e))}.bind(void 0),shallowEqual=function(r,e){return _newArrowCheck(this,_this),r===e||!xor(Array.isArray(r),Array.isArray(e))&&haveSameProps$1(r,e)}.bind(void 0),shallowEqual$1=curry(shallowEqual);export default shallowEqual$1; //# sourceMappingURL=shallowEqual.js.map