Skip to content

ListValue.slice method

ListValue › slice

Unofficial

Returns a shallow slice of the list.

Signature:

slice(start?: number, end?: number): ListValue

Parameters:

ParameterTypeDescription
start?numberThe start index.
end?numberThe end index (exclusive).

Returns: ListValue — The sliced list.