Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/netzo/core/plugins/auth/utils/display.ts>pluralize

Deno-powered framework for building business web apps
Go to Latest
function pluralize
import { pluralize } from "https://deno.land/x/netzo@0.3.91/core/plugins/auth/utils/display.ts";

Returns a pluralized string for the given amount and unit.

Examples

Example 1

import { pluralize } from "../../../../core/plugins/auth/utils/display.ts";

pluralize(0, "meow"); // Returns "0 meows"
pluralize(1, "meow"); // Returns "1 meow"

Parameters

amount: number
unit: string