Module "wordpress-plugins/real-cookie-banner/src/public/ts/utils/truncateMiddle"
Functions
truncateMiddle
- truncateMiddle(str: string, maxLength?: number, separator?: string): string
-
Parameters
-
str: string
-
Default value maxLength: number = 50
-
Default value separator: string = "..."
Returns string
Truncate a string with separator in the middle of the string.
https://stackoverflow.com/a/5723274/5506547