Skip to content

#skip

Returns the array without its leading elements, up to the specified count.

#skip(array, count)
Category Arrays and sequencesValid in Property value
Name Type Description
array path | array The source array.
count integer How many elements to skip.

array

source.json
{
"numbers": [ 1, 2, 3, 4 ]
}
transformer.json
{
"result": "#skip($.numbers, 2)"
}
output.json
{
"result": [ 3, 4 ]
}

Try it in the playground →

#take · #skipWhile · #slice