import { Uuid } from './types' ; const uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/ ; name export function isUuid ( value ) { return uuidPattern . test ( value as string ) ; }