foop
Version:
interfaces that describe their intentions.
13 lines (11 loc) • 298 B
JavaScript
const matchUnsigned = require('../regexp/matchUnsigned')
/**
* @TODO use `test` util
* @param {number | *} x value to test with regexp
* @return {boolean} x isUnsignedInteger
*
* @see regexp/matchUnsigned
*/
module.exports = function isUnsignedInteger(x) {
return matchUnsigned.test(x)
}