skip-last-elements
array →
skip-last-elements(
count: integer
) → array
Omits the requested number of elements from the end of the input enumerable and returns the remainder. Returns null when the input is not an enumerable, is a string, or the count is negative.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
count | integer | Yes | Number of elements to omit from the end of the input. |
Examples
{1, 2, 3} | skip-last-elements(2) → {1}
Kind: Function
Scope: array
Aliases: skip-last