ee.ImageCollection.limit

Stay organized with collections Save and categorize content based on your preferences.

Limit a collection to the specified number of elements, optionally sorting them by a specified property first.

Returns the limited collection.

UsageReturns
ImageCollection.limit(max, property, ascending)Collection
ArgumentTypeDetails
this: collectionCollectionThe Collection instance.
maxNumberThe number to limit the collection to.
propertyString, optionalThe property to sort by, if sorting.
ascendingBoolean, optionalWhether to sort in ascending or descending order. The default is true (ascending).