repl.txt (476B)
1 2 {{alias}}( str[, n] ) 3 Removes the last character(s) of a `string`. 4 5 Parameters 6 ---------- 7 str: string 8 Input string. 9 10 n: integer (optional) 11 Number of characters to remove. Default: 1. 12 13 Returns 14 ------- 15 out: string 16 Updated string. 17 18 Examples 19 -------- 20 > var out = {{alias}}( 'beep' ) 21 'bee' 22 > out = {{alias}}( 'Boop' ) 23 'Boo' 24 > out = {{alias}}( 'foo bar', 4 ) 25 'foo' 26 27 See Also 28 -------- 29