UNPKG

@stdlib/string

Version:

String manipulation functions.

30 lines (22 loc) 470 B
{{alias}}( str, n ) Removes the first `n` UTF-16 code units of a string. Parameters ---------- str: string Input string. n: integer Number of UTF-16 code units to remove. Returns ------- out: string Output string. Examples -------- > var out = {{alias}}( 'beep', 1 ) 'eep' > out = {{alias}}( 'Boop', 1 ) 'oop' > out = {{alias}}( 'foo bar', 5 ) 'ar' See Also --------