|
|
2 سال پیش | |
|---|---|---|
| .. | ||
| index.js | 2 سال پیش | |
| license | 2 سال پیش | |
| package.json | 2 سال پیش | |
| readme.md | 2 سال پیش | |
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.