MCPcopy
hub / github.com/nestjs/nest / stripEndSlash

Function stripEndSlash

packages/common/utils/shared.utils.ts:40–41  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

38 : '/';
39
40export const stripEndSlash = (path: string) =>
41 path[path.length - 1] === '/' ? path.slice(0, path.length - 1) : path;
42
43export const isFunction = (val: any): val is Function =>
44 typeof val === 'function';

Callers 5

isOverlappedMethod · 0.90
constructorMethod · 0.90
createMethod · 0.90
concatPathsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected