summaryrefslogtreecommitdiff
path: root/client/util/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-03-30 14:05:18 +0100
committerJules Laplace <julescarbon@gmail.com>2019-03-30 14:05:18 +0100
commit74741a25434045ba04e87a1049476e7a14c62ae6 (patch)
tree156a008169e2c169bc518394c66bbc9ebe587f49 /client/util/index.js
parent164b92454f2814e73dee9f673c1de07b715bc424 (diff)
pie chart sizing
Diffstat (limited to 'client/util/index.js')
-rw-r--r--client/util/index.js1
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')