@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">
19 lines (13 loc) • 519 B
JavaScript
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 elements prepended to the one given.
*/
var prepend = function (elements, array) {
_newArrowCheck(this, _this);
return [].concat(_toConsumableArray(elements), _toConsumableArray(array));
}.bind(undefined);
var prepend$1 = curry(prepend);
export default prepend$1;