diff options
Diffstat (limited to 'modules/Util.js')
-rw-r--r-- | modules/Util.js | 13 |
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 }; |