UNPKG

pure-conditions

Version:
5 lines (4 loc) 88 B
function isDigit (value) { return /^[0-9]{1}$/.test(value) } module.exports = isDigit