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

    Cuts a link if it exceeds a maximum amount of characters. Adds "..." if text got cut. Removes the protocol and "www".

    Parameters

    • link: string
    • max: number

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

    Returns string

Generated using TypeDoc