the original string to be ellided if over the specified finalLength
the maximum length the output string can be (including ellipsis)
a value of beginning
, middle
, or end
indicating where
the ellipsis will be added and what part of the input string will be truncated
the value to use as the ellipsis
if the original
string is over the length specified by finalLength
then
a truncated string will be returned with the ellipsis
character(s) at the location
of the truncation as specified by the ellipsisLocation
end
'...'
Generated using TypeDoc
truncates the passed in string if its length exceeds the length specified by
finalLength
and adds anellipsis
at the point of truncationex: