.
This commit is contained in:
1
utils.js
1
utils.js
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user