mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
fix example
This commit is contained in:
@@ -9,7 +9,7 @@ async function getPopularLanguages() {
|
|||||||
.filter(l => l != null)
|
.filter(l => l != null)
|
||||||
.countBy()
|
.countBy()
|
||||||
.toPairs()
|
.toPairs()
|
||||||
.sortBy(([lang, useCount]) => useCount)
|
.orderBy(([lang, useCount]) => useCount, 'desc')
|
||||||
.map(([lang]) => lang)
|
.map(([lang]) => lang)
|
||||||
.value()
|
.value()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user