Skip to content

Type Editor


Type Editor / @type-editor/changeset / simplify-changes/is-letter / isLetter

Function: isLetter()

ts
function isLetter(code): boolean;

Defined in: simplify-changes/is-letter.ts:45

Determines whether a character code represents a letter or digit.

For ASCII characters, checks if the code is in the alphanumeric range. For non-ASCII characters, uses Unicode properties if available, otherwise checks for case changes or single-case script membership.

Parameters

ParameterTypeDescription
codenumberThe character code to test.

Returns

boolean

True if the character is a letter or digit, false otherwise.