diff options
| author | adamhrv <adam@ahprojects.com> | 2019-03-30 15:56:33 +0100 |
|---|---|---|
| committer | adamhrv <adam@ahprojects.com> | 2019-03-30 15:56:33 +0100 |
| commit | 8f6af7c6818dd527a80c149b5e11c764453ffd31 (patch) | |
| tree | c2d9add991d8bd09f01a7b8fe0fb84239201bb73 /client/util | |
| parent | 19daac1fe803953bd47c82cac11f20680a150961 (diff) | |
| parent | a5f7d45e45439ff3da8ab570af1bf90fb0b15303 (diff) | |
fix merge
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') |
