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