securityos/node_modules/stylelint/lib/utils/isNonNegativeInteger.js

9 lines
184 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
/**
* @param {unknown} value
*/
module.exports = function isNonNegativeInteger(value) {
return Number.isInteger(value) && typeof value === 'number' && value >= 0;
};