diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-03-30 14:05:18 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-03-30 14:05:18 +0100 |
| commit | 74741a25434045ba04e87a1049476e7a14c62ae6 (patch) | |
| tree | 156a008169e2c169bc518394c66bbc9ebe587f49 /client/util | |
| parent | 164b92454f2814e73dee9f673c1de07b715bc424 (diff) | |
pie chart sizing
Diffstat (limited to 'client/util')
| -rw-r--r-- | client/util/index.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/util/index.js b/client/util/index.js index 0792e24e..87d32ebb 100644 --- a/client/util/index.js +++ b/client/util/index.js @@ -9,6 +9,7 @@ export const isFirefox = typeof InstallTrigger !== 'undefined' export const toArray = a => Array.prototype.slice.apply(a) export const choice = a => a[Math.floor(Math.random() * a.length)] +export const toTuples = o => Object.keys(o).map(key => [key, o[key]]) const htmlClassList = document.body.parentNode.classList htmlClassList.add(isDesktop ? 'desktop' : 'mobile') |
