isCuid

Function

Determines if the provided stringToTest matches CUID format

  • isCuid(stringToTest: string) : boolean

Parameters

Parameter Type Default Notes
stringToTest Required string

The string to evaluate

Returns

true when stringToTest matches CUID format

boolean

Function defined in common/src/utils/is-cuid.ts:6