repl.txt (549B)
1 {{alias}}( str, n[, chars] ) 2 Trims `n` characters from the beginning of a string. 3 4 Parameters 5 ---------- 6 str: string 7 Input string. 8 9 n: integer 10 Number of characters to trim. 11 12 chars: Array<string>|string (optional) 13 Characters to trim. Default: whitespace characters. 14 15 Returns 16 ------- 17 out: string 18 Trimmed string. 19 20 Examples 21 -------- 22 > var out = {{alias}}( ' abc ', 2 ) 23 'abc ' 24 > var out = {{alias}}( '!!!abc!!!', 2, '!' ) 25 '!abc!!!' 26 27 See Also 28 --------