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)

8 lines (7 loc) 274 B
import { isBinary } from "./isBinary.js"; import { isDecimal } from "./isDecimal.js"; import { isHex } from "./isHex.js"; import { isOctal } from "./isOctal.js"; export const isNumber = (str) => { return isBinary(str) || isHex(str) || isOctal(str) || isDecimal(str); };