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

    Returns a trimmed text which does not cut words. Adds " ..." to the end if trimmed.

    Parameters

    • text: string

      the text to be trimmed

    • max: number

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

    • min: number = 0

      the minimum of words which should be returned (optional)

    Returns string

Generated using TypeDoc