Skip to content

Kebab Case

toKebabCase is a function convert a string to kebab case.

Example

This function will convert any string into kebab case:

ts
import { toKebabCase } from "@titocandradev/neatcore";

const result = toKebabCase("hello world");
// hello-world