isNonNegativeInteger.cjs 349 B

123456789101112
  1. // NOTICE: This file is generated by Rollup. To modify it,
  2. // please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
  3. 'use strict';
  4. /**
  5. * @param {unknown} value
  6. */
  7. function isNonNegativeInteger(value) {
  8. return Number.isInteger(value) && typeof value === 'number' && value >= 0;
  9. }
  10. module.exports = isNonNegativeInteger;