UNPKG

validatable

Version:

A library for synchronous and asynchronous input validation.

8 lines (5 loc) 174 B
import { isString } from 'typeable'; export function stringHexadecimal (value: any): boolean { if (!isString(value)) return false; return /^[0-9A-F]+$/i.test(value); }