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

10 lines (7 loc) 267 B
"use strict"; var toShortString = require("../to-short-string-representation") , isArray = require("./is-array-like"); module.exports = function (value) { if (isArray(value)) return value; throw new TypeError(toShortString(value) + " is not a array"); };