diff options
Diffstat (limited to 'upd8-util.js')
-rw-r--r-- | upd8-util.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/upd8-util.js b/upd8-util.js index 2fe2fcc8..cd0beedf 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'); +}; |