This commit is contained in:
nim-ka
2022-11-19 02:26:18 +00:00
parent 372a65cc51
commit 4ee438f8d6
8 changed files with 364 additions and 18 deletions

View File

@@ -1,4 +1,5 @@
utils = {
log: (e, copy = false) => (console.log(copy ? e.copyDeep() : e), e),
fetch: (url) => fetch(url).then(e => e.text()),
fetchEval: (url) => utils.fetch(url).then(e => eval(e)),
signAgnosticInclusiveRange: (a, b, s = Math.sign(a - b)) => Array((a - b) * s + 1).fill().map((_, i) => a - i * s),