Returns true when the input is a well-formed UUID string (canonical 8-4-4-4-12 hex form,
case-insensitive, surrounding whitespace tolerated). Null/undefined/empty are not valid.
Use this to validate any externally-supplied id BEFORE interpolating it into a SQL filter or
trusting it as an entity key — it guards against injection and malformed lookups.
Parameters
uuid: string|null|undefined
The value to test
Returns boolean
true if uuid is a syntactically valid UUID, false otherwise
Returns true when the input is a well-formed UUID string (canonical 8-4-4-4-12 hex form, case-insensitive, surrounding whitespace tolerated). Null/undefined/empty are not valid.
Use this to validate any externally-supplied id BEFORE interpolating it into a SQL filter or trusting it as an entity key — it guards against injection and malformed lookups.