• import { cutText } from '@src/hylo-components/utils/usefull/usefull';

    Cuts a text if it exceeds a maximum amount of characters. Adds "..." if text got cut.

    Parameters

    • text: string

      the text to be cut

    • max: number

      the maximum amount of characters in the cut text (including "...")

    Returns string

Generated using TypeDoc