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

Capitalizes the first letter of every word in a string. Use String.prototype.replace() to match the first character of each word and String.prototype.toUpperCase() to capitalize it.

type

(str?: string) => unknown