IsNonNegativeInteger.js 225 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 'use strict'; var IsInteger = require('./IsInteger'); // https://tc39.es/ecma262/2020/#sec-isnonnegativeinteger module.exports = function IsNonNegativeInteger(argument) { return !!IsInteger(argument) && argument >= 0; };