Skip to content

Commit

Permalink
filter stats
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Mar 6, 2024
1 parent 277f839 commit 24f0234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ playground:

function extract_slice(raw, cond) {
const res = raw
.filter(([name, _]) => cond(name))
.filter(([name, n]) => cond(name) && Number(n) > 1)
.map(([name, n]) => [name, Number(n)]);
res.sort((a, b) => b[1] - a[1]);
return res;
Expand Down

0 comments on commit 24f0234

Please sign in to comment.