Docs (4.0.0)
class ManagedList method

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