Check if a character is hexadecimal.
npm:
npm install is-hexadecimalvar hexadecimal = require('is-hexadecimal');
hexadecimal('a'); //=> true
hexadecimal('0'); //=> true
hexadecimal('G'); //=> false
hexadecimal('💩'); //=> falseCheck whether the given character code (number), or the character
code at the first position (string), is hexadecimal.