shortenString: Shorten a string if it is longer than a limit

Description Usage Arguments Value

Description

Shorten a string if it is longer than a limit

Usage

1
  shortenString(text, limit, cutIndication = "...")

Arguments

text

The string to shorten.

limit

The length limit.

cutIndication

A string to append to the string if shortened.

Value

The shortened string.


twiddler documentation built on May 2, 2019, 2:46 p.m.