Powered By GitBook
REMOVE_ITEMS_AT
Removes a number of items from a list at an index

Description

Return given list wherein removes the given number of items from a list at the given index. If the removal count parameter is omitted, then one (1) item is removed.

Function signature

1
REMOVE_ITEMS_AT(list: Array, startindex: Number, removalcount: Number = 1) => Array
Copied!
Parameter
Description
List
Given list
Start index
Start index at which the items will be removed
Removal count
Number of items to remove at the given index.

Examples

1
array = [{"a":1},{"a":2},{"a":3}]
2
numbers = [1,2,3]
Copied!
Formula
Return value
REMOVE_ITEMS_AT(array, 2, 1)
[{"a":1},{"a":2}]
REMOVE_ITEMS_AT(array, -10)
[{"a":2},{"a":3}]
REMOVE_ITEMS_AT(array, -1, 1)
[{"a":1},{"a":2}]
REMOVE_ITEMS_AT(numbers, 1)
[1,3]
Last modified 10mo ago
Export as PDF
Copy link