From dfd84ead5bd5dfbcd7c25d08b816b28b4620ee5a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 30 Jan 2022 15:01:35 -0400 Subject: all-in-one document mode & artist data --- src/util/sugar.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/util') diff --git a/src/util/sugar.js b/src/util/sugar.js index f5d1d29d..774534c2 100644 --- a/src/util/sugar.js +++ b/src/util/sugar.js @@ -35,11 +35,6 @@ export const unique = arr => Array.from(new Set(arr)); // Stolen from jq! Which pro8a8ly stole the concept from other places. Nice. export const 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. -export const call = fn => fn(); - export function queue(array, max = 50) { if (max === 0) { return array.map(fn => fn()); -- cgit 1.3.0-6-gf8a5