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">

24 lines (17 loc) 603 B
import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray'; import _newArrowCheck from 'babel-runtime/helpers/newArrowCheck'; import { curry } from 'flow-static-land/lib/Fun'; var _this = undefined; /** * Returns a new Array with the given size (count) filled with the specified * element. */ var repeat = function (count, element) { _newArrowCheck(this, _this); return [].concat(_toConsumableArray(Array(count))).map(function () { _newArrowCheck(this, _this); return element; }.bind(this)); }.bind(undefined); var repeat$1 = curry(repeat); export default repeat$1;