Projects STRLCPY kitsec-core Files
🤬
..
index.js Loading last commit info...
license
package.json
readme.md
readme.md

is-hexadecimal

[Build]build [Coverage]coverage [Downloads]downloads [Size]size

Check if a character is hexadecimal.

Install

npm:

npm install is-hexadecimal

Use

var hexadecimal = require('is-hexadecimal')

hexadecimal('a') // => true
hexadecimal('0') // => true
hexadecimal('G') // => false
hexadecimal('💩') // => false

API

hexadecimal(character|code)

Check whether the given character code (number), or the character code at the first position (string), is hexadecimal.

License

MIT © Titus Wormer

Please wait...
Page is in error, reload to recover