securityos/node_modules/stylelint/lib/utils/pluralize.js

13 lines
253 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
/**
* Returns the plural form of the given word.
*
* @param {string} singular
* @param {number} count
* @returns {string}
*/
module.exports = function pluralize(singular, count) {
return count === 1 ? singular : `${singular}s`;
};