Member Junction
    Preparing search index...
    • 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

      IsValidUUID('a1b2c3d4-e5f6-7890-abcd-ef1234567890') // true
      IsValidUUID(' A1B2C3D4-E5F6-7890-ABCD-EF1234567890 ') // true (trimmed, case-insensitive)
      IsValidUUID('not-a-uuid') // false
      IsValidUUID(null) // false