repl.txt (535B)
1 {{alias}}( str, len[, seq] ) 2 Truncates a string in the middle to a specified length. 3 4 Parameters 5 ---------- 6 str: string 7 Input string. 8 9 len: integer 10 Output string length. 11 12 seq: string (optional) 13 Custom replacement sequence. Default: '...'. 14 15 Returns 16 ------- 17 out: string 18 Truncated string. 19 20 Examples 21 -------- 22 > var str = 'beep boop'; 23 > var out = {{alias}}( str, 5 ) 24 'b...p' 25 26 > out = {{alias}}( str, 5, '|' ) 27 'be|op' 28 29 See Also 30 --------