lhl 6ff0e96ad3 8-4-1 | 1 gadu atpakaļ | |
---|---|---|
.. | ||
index.js | 1 gadu atpakaļ | |
license | 1 gadu atpakaļ | |
package.json | 1 gadu atpakaļ | |
readme.md | 1 gadu atpakaļ |
Check if a character is hexadecimal.
npm:
npm install is-hexadecimal
var hexadecimal = require('is-hexadecimal')
hexadecimal('a') // => true
hexadecimal('0') // => true
hexadecimal('G') // => false
hexadecimal('💩') // => false
hexadecimal(character|code)
Check whether the given character code (number
), or the character code at the
first position (string
), is hexadecimal.