core.isuuid | Medplum

isUUID() function

Returns true if the input string is a UUID.

Signature:

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

Parameters [​](/content/docs/sdk/core.isuuid#parameters "Direct link to Parameters"/index.html)

Parameter Type Description
input string The input string.

Returns:

input is string

True if the input string matches the UUID format.