Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function pluralize
import { pluralize } from "https://deno.land/x/netzo@0.4.72/plugins/auth/utils/display.ts";

Returns a pluralized string for the given amount and unit.

Examples

Example 1

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

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

Parameters

amount: number
unit: string