Skip to content

stripLeadingSlash

stripLeadingSlash(href): string

Ensure the passed path does not start with a leading slash.

Parameters

href: string

Returns

string

Defined in

packages/studiocms_core/src/helpers/pathGenerators.ts:39