diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-02-13 18:05:35 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-02-13 18:05:35 +0100 |
| commit | 83063b97105c7514d71ec2afaaf66def49116214 (patch) | |
| tree | b538a8b913cec7e563d23778a0cc4c523f559bda /scraper/client/util.js | |
| parent | 8d17c7b8491f270ae1785921b0ae0d89f8290c7b (diff) | |
listing citations, known and unknown
Diffstat (limited to 'scraper/client/util.js')
| -rw-r--r-- | scraper/client/util.js | 2 |
1 files changed, 2 insertions, 0 deletions
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 => { |
