summaryrefslogtreecommitdiff
path: root/client/util
diff options
context:
space:
mode:
authoradamhrv <adam@ahprojects.com>2019-03-30 15:56:33 +0100
committeradamhrv <adam@ahprojects.com>2019-03-30 15:56:33 +0100
commit8f6af7c6818dd527a80c149b5e11c764453ffd31 (patch)
treec2d9add991d8bd09f01a7b8fe0fb84239201bb73 /client/util
parent19daac1fe803953bd47c82cac11f20680a150961 (diff)
parenta5f7d45e45439ff3da8ab570af1bf90fb0b15303 (diff)
fix merge
Diffstat (limited to 'client/util')
-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')