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

9 lines
184 B
JavaScript
Raw Normal View History

2023-12-09 22:48:07 -08:00
'use strict';
/**
* @param {unknown} value
*/
module.exports = function isNonNegativeInteger(value) {
return Number.isInteger(value) && typeof value === 'number' && value >= 0;
};