UNPKG

stylelint

Version:

A mighty CSS linter that helps you avoid errors and enforce conventions.

11 lines (10 loc) 235 B
/** * Returns the plural form of the given word. * * @param {string} singular * @param {number} count * @returns {string} */ export default function pluralize(singular, count) { return count === 1 ? singular : `${singular}s`; }