Shorten a string if it is longer than a limit
shortenString(text, limit, cutIndication = "...")
The string to shorten.
The length limit.
A string to append to the string if
The shortened string.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.