function getCategoryIdBySlug
getCategoryIdBySlug(
slug: string
): string | undefined

Returns the id of the category of kind at slug, or undefined when there is none.

Parameters

slug: string

Return Type

string | undefined

Usage

import { getCategoryIdBySlug } from "api/services/category-service.ts";