UNPKG

@raphaeldeveloper/whoiam.domain

Version:

Project with domain rules about user authentication.

10 lines (8 loc) 181 B
'use strict'; module.exports = function (str, plural, count) { if (typeof plural === 'number') { count = plural; plural = str + 's'; } return count === 1 ? str : plural; };