OptionalellipsisOptionalpositionPosition to truncate the string. Default is "end".
OptionalstrictIf true, and maxLength is less than or equal to the length of ellipsisString,
the function will return an empty string. If false, it will return the
non-truncated ellipsisString.
Default is false.
OptionalwordWhether to cut words when truncating. Default is true.
If false, the function will try to avoid cutting words by looking for spaces. If no suitable space is found, it will cut at the maximum length.
The string to use as ellipsis. Default is "…".