diff options
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 => { |
