@technobuddha/library
Version:
A large library of useful functions
10 lines (9 loc) • 491 B
TypeScript
/**
* Return the plural version of the input string
*
* @param input The word to pluralize
* @param quantity The quantity to prepend to the word. If omitted nothing is prepended. If quantity is one the singular form is returned.
* @returns The plural form of the input, or if a quantity is supplied - the quantity and the singular/plural form of the input (whichever is appropriate)
*/
export declare function plural(input: string, quantity?: number): string;
export default plural;