$ cnpm install is-hexadecimal
Check if a character is hexadecimal.
This package is ESM only: Node 12+ is needed to use it and it must be import
ed
instead of require
d.
npm:
npm install is-hexadecimal
import {isHexadecimal} from 'is-hexadecimal'
isHexadecimal('a') // => true
isHexadecimal('0') // => true
isHexadecimal('G') // => false
isHexadecimal('????') // => false
This package exports the following identifiers: isHexadecimal
.
There is no default export.
isHexadecimal(character|code)
Check whether the given character code (number
), or the character code at the
first position (string
), is isHexadecimal.
Copyright 2013 - present © cnpmjs.org