Skip to content

PURISTA API


PURISTA API / @purista/core / convertToKebabCase

Function: convertToKebabCase()

convertToKebabCase(str): string

Defined in: helper/string/convertToKebabCase.impl.ts:13

Converts a string into kebab-case.

Parameters

str

string

Returns

string

Example

ts
convertToKebabCase('SomeText')
// => 'some-text'

https://github.com/30-seconds/30-seconds-of-code