From 83063b97105c7514d71ec2afaaf66def49116214 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 13 Feb 2019 18:05:35 +0100 Subject: listing citations, known and unknown --- scraper/client/util.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scraper/client/util.js') diff --git a/scraper/client/util.js b/scraper/client/util.js index b00a0061..fe60d925 100644 --- a/scraper/client/util.js +++ b/scraper/client/util.js @@ -61,6 +61,8 @@ export const px = (n, w) => Math.round(n * w) + 'px' export const clamp = (n, a, b) => n < a ? a : n < b ? n : b +export const choice = a => a[Math.floor(Math.random()*a.length)] + /* URLs */ export const hashPath = sha256 => { -- cgit v1.2.3-70-g09d2