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

18 lines (12 loc) 420 B
import _newArrowCheck from 'babel-runtime/helpers/newArrowCheck'; import { curry } from 'flow-static-land/lib/Fun'; var _this = undefined; /** * Returns true if given index is the last one or false otherwise. */ var isLastIndex = function (array, index) { _newArrowCheck(this, _this); return index === array.length - 1; }.bind(undefined); var isLastIndex$1 = curry(isLastIndex); export default isLastIndex$1;