UNPKG

@numio/bigmath

Version:

@numio/bigmath is an arbitrary-precision arithmetic library. It can be used for basic operations with decimal numbers (integers and float)

4 lines (3 loc) 81 B
export const isHex = (str) => { return /^-?(0x)[0-9a-fA-F]+$/i.test(str); };