Tail
type | returns |
method | string |
name | type | description |
size | int | the amount of characters to grab |
Returns a substring of the given size, starting at the string's last character. Roughly equivilent to
#slice(-size)
"Hello!".tail(1) == "!"
// Goat emoji is a surrogate of two bytes
"🐑🐐".tail(2) == "🐐"
Last modified 3yr ago