From 98ef13f91132738e57ec800c687f16959ca99d3c Mon Sep 17 00:00:00 2001 From: Florrie Date: Sun, 24 Nov 2019 18:48:33 -0400 Subject: listings; about & credits; other fancy things ...that i don't exactly remember :) --- upd8-util.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'upd8-util.js') 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'); +}; -- cgit 1.3.0-6-gf8a5