limit(max, property, ascending)
Limit a collection to the specified number of elements, optionally sorting them by a specified property first.
Returns the limited collection.
将一个集合限制为指定数量的元素,可以选择先按指定的属性进行排序。
返回被限制的集合。
Arguments:
this:collection (Collection):
The Collection instance.
max (Number):
The number to limit the collection to.
property (String, optional):
The property to sort by, if sorting.
ascending (Boolean, optional):
Whether to s