Returns the given string truncated in the middle with the given or DEFAULT_TRUNCATED_SUBSTRING_LENGTH | default
substring length as its prefix and suffix (e.g. ac130bh7dghj5 → ac13...ghj5).
Parameters
str: string
substringLength: number = DEFAULT_TRUNCATED_SUBSTRING_LENGTH
Returns the given string truncated in the middle with the given or DEFAULT_TRUNCATED_SUBSTRING_LENGTH | default substring length as its prefix and suffix (e.g.
ac130bh7dghj5→ac13...ghj5).