summaryrefslogtreecommitdiff
path: root/school/node_modules/graphql/polyfills/isInteger.mjs
blob: 3396f164a8e2160ff6fe6bbf4bd8c94f8ca6c545 (plain)
1
2
3
4
5
6
7
/* eslint-disable no-redeclare */
// $FlowFixMe[name-already-bound] workaround for: https://github.com/facebook/flow/issues/4441
var isInteger = Number.isInteger || function (value) {
  return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
};

export default isInteger;