effect-io-ai

Package: effect
Module: Schema

Schema.isCapitalized

Validates that the first character of a string is unchanged by toUpperCase().

Details

Empty strings pass. Strings whose first character has no lowercase form, such as a digit, punctuation mark, or whitespace, also pass.

Signature

declare const isCapitalized: (annotations?: Annotations.Filter) => SchemaAST.Filter<string>

Source

Since v4.0.0