Skip to main content

core.isuuid

Home > @medplum/core > isUUID

isUUID() function

Returns true if the input string is a UUID.

Signature:

export declare function isUUID(input: string): input is string;

Parameters

Parameter

Type

Description

input

string

The input string.

Returns:

input is string

True if the input string matches the UUID format.