Documentation
list
typePaperVelocity
An ordered list of values.
Properties 3
list.size: number
read-only
Number of items.
list.first: any
read-only
First item, or none.
list.last: any
read-only
Last item, or none.
Methods 12
Appends a value.
Inserts a value at an index.
Removes the first matching value. Returns true if found.
Removes and returns the item at an index.
Removes and returns the last item, or none.
True if the list has the value.
Index of the value, or -1.
Removes everything.
Joins the items into text.
Sorts the list in place and returns it.
Reverses the list in place and returns it.
A new list with the same items.