summaryrefslogtreecommitdiff
path: root/app/client/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/util.js')
-rw-r--r--app/client/util.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/client/util.js b/app/client/util.js
new file mode 100644
index 0000000..db9fa8c
--- /dev/null
+++ b/app/client/util.js
@@ -0,0 +1,6 @@
+export function timeInSeconds(n){
+ return (n / 10).toFixed(1) + ' s.'
+}
+export function gerund(s){
+ return s.replace(/e?$/, 'ing')
+}