ExcludeWordFilter

import { ExcludeWordFilter } from "jsr:@ende/text/unstable-to-title-case";

type alias ยท experimental

type ExcludeWordFilter = (value: Intl.SegmentData, index: number, array: Intl.SegmentData[]) => boolean

A function that filters words in the string. If a word returns true from this function, it will not be title-cased.

Returns

true if the word should be excluded from title casing, false otherwise.

Source