This commit is contained in:
nim-ka
2021-12-29 03:53:12 -05:00
parent c570cae378
commit 630f3a46a8
8 changed files with 6 additions and 30 deletions

View File

@@ -1,4 +1,4 @@
window.utils = {
utils = {
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),