MCPcopy Index your code
hub / github.com/coder/code-server / plural

Function plural

src/common/util.ts:5–5  ·  view source on GitHub ↗
(count: number, str: string)

Source from the content-addressed store, hash-verified

3 * otherwise the string is returned
4 */
5export const plural = (count: number, str: string): string => (count === 1 ? str : `${str}s`)
6
7export const generateUuid = (length = 24): string => {
8 const possible = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"

Callers 4

focusTerminalMethod · 0.90
navigateItemsMethod · 0.90
runCodeServerFunction · 0.90
registerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected