summaryrefslogtreecommitdiff
path: root/modules/Util.js
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-05-29 14:50:55 -0500
committersanine <sanine.not@pm.me>2022-05-29 14:50:55 -0500
commit3bc2838360627f78a91a7cad81f3bc97711410c2 (patch)
tree54d260b45895c1923a785efce817b94836660f35 /modules/Util.js
parentd35e02ecdcef6d4f120bd572f2aae36b467b7761 (diff)
refactor: move everything into src/ subdirectory
Diffstat (limited to 'modules/Util.js')
-rw-r--r--modules/Util.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/modules/Util.js b/modules/Util.js
deleted file mode 100644
index cbe466d..0000000
--- a/modules/Util.js
+++ /dev/null
@@ -1,13 +0,0 @@
-function useAverage() {
- var avg = 0;
- let weight = 0;
- const append = value => {
- avg = (weight * avg) + value;
- weight += 1;
- avg = avg/weight;
- }
-
- return [() => avg, append];
-}
-
-export { useAverage };