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:

Parameter Type Description
start? number | undefined The start index.
end? number | undefined The end index (exclusive).

Returns: ListValueThe sliced list.