@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">
22 lines (15 loc) • 553 B
JavaScript
import _Number$isInteger from 'babel-runtime/core-js/number/is-integer';
import _newArrowCheck from 'babel-runtime/helpers/newArrowCheck';
var _this = undefined;
var isIntGreaterThan = function (number, other) {
_newArrowCheck(this, _this);
return _Number$isInteger(number) && number >= other;
}.bind(undefined);
/**
* Returns true if the given string is an Array key or false otherwise.
*/
var isKey = function (string) {
_newArrowCheck(this, _this);
return isIntGreaterThan(Number(string), 0);
}.bind(undefined);
export default isKey;