UNPKG

validatable

Version:

A library for synchronous and asynchronous input validation.

8 lines (5 loc) 179 B
import {isString} from 'typeable'; export function stringETHAddress (value: any): boolean { if (!isString(value)) return false; return /^0x[a-fA-F0-9]{40}$/i.test(value); }