takeLast
Returns a number of objects from the list.
takeLast(n: number, endingAt?: T): T[]
Parameters
- n — The number of objects to return
- endingAt — The last object to return (optional, defaults to the last item)
Return value
An array containing the objects in the list
Related
- class ManagedListA data structure that contains an ordered set of managed objects.