This commit is contained in:
nim-ka
2021-12-29 03:32:06 -05:00
parent e7ecba88ef
commit eb702d1e22
8 changed files with 34 additions and 6 deletions

View File

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