diff options
author | (quasar) nebula <towerofnix@gmail.com> | 2021-05-04 21:38:23 -0300 |
---|---|---|
committer | (quasar) nebula <towerofnix@gmail.com> | 2021-05-05 10:05:37 -0300 |
commit | 1aeb764069cdc592e025f6a790acf5d1f78f740c (patch) | |
tree | 5427d6f393d4ee79901b0af2325f91a421b05341 /upd8-util.js | |
parent | 6deb774fdab0bfdacfad8010ad742be3f3d6ef7f (diff) |
relatively acceptable HTML utility shenanigans
Diffstat (limited to 'upd8-util.js')
-rw-r--r-- | upd8-util.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/upd8-util.js b/upd8-util.js index abeed6c1..4c4186f7 100644 --- a/upd8-util.js +++ b/upd8-util.js @@ -416,3 +416,8 @@ 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))); + +// Nothin' more to it than what it says. Runs a function in-place. Provides an +// altern8tive syntax to the usual IIFEs (e.g. (() => {})()) when you want to +// open a scope and run some statements while inside an existing expression. +module.exports.call = fn => fn(); |