isOrganizationCategory

Function

Detects whether a given string comes from an organization's category schema. Since the category schema preserves casing, this function checks for the prefix "/Categories".

  • isOrganizationCategory(value: string) : boolean

Parameters

Parameter Type Default Notes
value Required string

The string to check.

Returns

true if the string is an organization category, false otherwise.

boolean

Function defined in common/src/core/schemas/internal/categories/isFullyQualifiedCategory.ts:19