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) 799 B
import _defineProperty from"babel-runtime/helpers/defineProperty";import _extends from"babel-runtime/helpers/extends";import _slicedToArray from"babel-runtime/helpers/slicedToArray";import _Object$entries from"babel-runtime/core-js/object/entries";import _newArrowCheck from"babel-runtime/helpers/newArrowCheck";import{curry}from"flow-static-land/lib/Fun";var _this=void 0,mapObject=function(e,r){return _newArrowCheck(this,_this),_Object$entries(r).reduce(function(t,i){var n=_slicedToArray(i,2),o=n[0],m=n[1];return _newArrowCheck(this,_this),_extends({},t,_defineProperty({},o,e(m,o,r)))}.bind(this),{})}.bind(void 0),map=function(e,r){return _newArrowCheck(this,_this),Array.isArray(r)?r.map(e):mapObject(e,r)}.bind(void 0),map$1=curry(map);export default map$1; //# sourceMappingURL=map.js.map