tail

function, since version 1.0.0
categories: arrays

tail(arr, [n=1])

returns input array without the first n elements. Parameter n is optional, with default value 1

parameters

return type

any

example

tail(split('a:b:c:d:e', ':'))
tail(split('a:b:c:d:e', ':'), 2)
join(tail(split('a:b:c:d:e', ':'), 2), ':')

returns

[b, c, d, e]
[c, d, e]
c:d:e

Related functions:

Update your privacy settings