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