Skip to content

ListValue.slice method

ListValue › slice

Unofficial

Returns a shallow slice of the list.

Signature:

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

Parameters:

ParameterTypeDescription
start?number | undefinedThe start index.
end?number | undefinedThe end index (exclusive).

Returns: ListValueThe sliced list.