Appearance
@miyue-mma/shared / sortWith
function sortWith<T>( articles, key, len): T[]
对数组进行排序并返回前 n 个元素
• T extends Record<string, unknown>
Record
string
unknown
T[]
T
源数组
keyof T
排序的键名
number = 10
number
10
前 n 个元素