From be6907cfa459c850e7b200df91d8347a39bfe614 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 18 May 2022 20:54:44 +0000 Subject: median --- src/routes/auctionprices.svelte | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/routes/auctionprices.svelte b/src/routes/auctionprices.svelte index bfa47d2..0ef7d3f 100644 --- a/src/routes/auctionprices.svelte +++ b/src/routes/auctionprices.svelte @@ -134,6 +134,14 @@

{/if} {#if item.auctions.length >= 2} +

+ Median: + + {[...item.auctions] + .sort((a, b) => a.coins - b.coins) + [Math.floor(item.auctions.length / 2)].coins.toLocaleString()} coins + +

Volume: -- cgit