Skip to main content
variable toKebabCase
import { toKebabCase } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Converts a string to kebab case.

Break the string into words and combine them adding - as a separator, using a regexp.

type

(str: string) => unknown