sp core library.guid.isvalid - microsoft/Viva-Connections-Extensibility-Beta GitHub Wiki
Home > @microsoft/sp-core-library > Guid > isValid
Indicates whether a GUID is valid, i.e. whether it would be successfully parsed by Guid.tryParse(). This function is cheaper than Guid.tryParse() because it does not construct a Guid object.
Signature:
static isValid(guid: string | undefined | null): boolean;| Parameter | Type | Description |
|---|---|---|
| guid | string | undefined | null | The input string. |
Returns:
boolean
true, if the Guid is valid.