API Reference

Returns a string with a certain number of characters removed.

function shave(iterable: string, n: number): string

// Example:

shave("Hello", 2) //=> "Hel"

shave("Hello", -2) //=> "llo"

NOTE: By default elements are removed from the end. You can pass in a negative number to remove them from the front