Formats given input string, taking first sideCharsLength and last sideCharsLength characters, joining them with separator. If there is not enough characters, returns the original string.
sideCharsLength
separator
formatHash("abcdef1234567890") // "abcd…7890" Copy
formatHash("abcdef1234567890") // "abcd…7890"
Formats given input string, taking first
sideCharsLengthand lastsideCharsLengthcharacters, joining them withseparator. If there is not enough characters, returns the original string.Example