Lodash.truncate

Truncates string if it's longer than the given maximum string length. The last characters of the truncated string are replaced with the omission string which defaults to "...".

struct Lodash
nothrow @trusted @safe ref
truncate
(
T = Any
)
(
auto ref T options = T.init
)

Return Value

Type: auto ref

- Lodash chained on (string): the truncated string.

Meta