The type of the items in the array.
The type of the field name where the rank will be stored.
The array of items to be ranked.
An array of functions for producing the criteria by which to rank items.
Optional
options: { Optional settings for the ranking.
Optional
fieldThe name of the field to store the rank in each item, defaults to "rank".
Optional
orders?: ("desc" | "asc")[]The order to sort for each iteratee, defaults to ascending order.
Optional
startingThe rank to start at, defaults to 1.
Generated using TypeDoc
Performs a dense ranking on an array of items based on specified iteratees and orders. Each item in the array is assigned a rank, with identical items receiving the same rank. The rank is added to each item in a new field specified by the fieldName parameter.