« get me outta code hell

listings; about & credits; other fancy things - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8-util.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2019-11-24 18:48:33 -0400
committerFlorrie <towerofnix@gmail.com>2019-11-24 18:48:33 -0400
commit98ef13f91132738e57ec800c687f16959ca99d3c (patch)
tree4cc4c12b47aa8fb109d1d3907010ebcc8582acd0 /upd8-util.js
parentd7290a5803285117da60637ed7b4ef8b54402561 (diff)
listings; about & credits; other fancy things
...that i don't exactly remember :)
Diffstat (limited to 'upd8-util.js')
-rw-r--r--upd8-util.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/upd8-util.js b/upd8-util.js
index 2fe2fcc..cd0beed 100644
--- a/upd8-util.js
+++ b/upd8-util.js
@@ -69,3 +69,8 @@ module.exports.th = function (n) {
         return n + 'th';
     }
 };
+
+// My function names just keep getting 8etter.
+module.exports.s = function (n, word) {
+    return `${n} ${word}` + (n === 1 ? '' : 's');
+};