From 52e2d8f31703c5127f740fe84108efb8ce1b5fc2 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 31 Mar 2021 14:18:29 -0300 Subject: 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! --- upd8-util.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'upd8-util.js') diff --git a/upd8-util.js b/upd8-util.js index 6498331..6ff3419 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))); -- cgit 1.3.0-6-gf8a5