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) 971 B
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _defineProperty=_interopDefault(require("babel-runtime/helpers/defineProperty")),_extends=_interopDefault(require("babel-runtime/helpers/extends")),_slicedToArray=_interopDefault(require("babel-runtime/helpers/slicedToArray")),_Object$entries=_interopDefault(require("babel-runtime/core-js/object/entries")),_newArrowCheck=_interopDefault(require("babel-runtime/helpers/newArrowCheck")),Fun=require("flow-static-land/lib/Fun"),_this=void 0,mapObject=function(e,r){return _newArrowCheck(this,_this),_Object$entries(r).reduce(function(t,i){var n=_slicedToArray(i,2),u=n[0],o=n[1];return _newArrowCheck(this,_this),_extends({},t,_defineProperty({},u,e(o,u,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=Fun.curry(map);module.exports=map$1; //# sourceMappingURL=map.js.map