#skip
Returns the array without its leading elements, up to the specified count.
#skip(array, count)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
array |
path | array |
The source array. |
count |
integer |
How many elements to skip. |
Returns
Section titled “Returns”array
Examples
Section titled “Examples”All but the first two
Section titled “All but the first two”{ "numbers": [ 1, 2, 3, 4 ]}{ "result": "#skip($.numbers, 2)"}{ "result": [ 3, 4 ]}Related
Section titled “Related”#take · #skipWhile · #slice
