mirror of
https://gh.wpcy.net/https://github.com/djav1985/v-wordpress-plugin-updater.git
synced 2026-04-28 08:02:16 +08:00
6 lines
166 B
JavaScript
6 lines
166 B
JavaScript
/**
|
|
* @param {unknown} value
|
|
*/
|
|
export default function isNonNegativeInteger(value) {
|
|
return Number.isInteger(value) && typeof value === 'number' && value >= 0;
|
|
}
|