Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/directus/directus
/ depluralize
Function
depluralize
packages/utils/shared/pluralize.ts:7–9 ·
view source on GitHub ↗
(str: Plural<T>)
Source
from the content-addressed store, hash-verified
5
}
6
7
export
function
depluralize<T extends string>(str: Plural<T>): T {
8
return
str.slice(0, -1) as T;
9
}
Callers
1
pluralize.test.ts
File · 0.70
Calls
1
slice
Method · 0.80
Tested by
no test coverage detected