« get me outta code hell

Rework URL system to be a bit less Smart(TM) - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8-util.js
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-03-31 14:18:29 -0300
committer(quasar) nebula <towerofnix@gmail.com>2021-03-31 14:18:29 -0300
commit52e2d8f31703c5127f740fe84108efb8ce1b5fc2 (patch)
treef44e8a0cad545d985fa44ed42ef95c9bce017db1 /upd8-util.js
parentf5ec083cdcedd8aa50ba5e065805a709f59178b9 (diff)
Rework URL system to be a bit less Smart(TM)
I don't actually recall what prompted all the stuff here, 8ut hey, it
works at least marginally 8etter than 8efore!
Diffstat (limited to 'upd8-util.js')
-rw-r--r--upd8-util.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/upd8-util.js b/upd8-util.js
index 64983313..6ff34199 100644
--- a/upd8-util.js
+++ b/upd8-util.js
@@ -402,3 +402,6 @@ module.exports.promisifyProcess = function(proc, showLogging = true) {
         })
     })
 };
+
+// Stolen from jq! Which pro8a8ly stole the concept from other places. Nice.
+module.exports.withEntries = (obj, fn) => Object.fromEntries(fn(Object.entries(obj)));