Skip to content
Sheetwrite

@sheetwrite/core/codec

validateWorkbookTableNamefunction

Report a problem

On this page

Validate and NFC-normalize an ECMA-compatible structured-reference name.

Declaration

function validateWorkbookTableName(
input: string,
existingNames?: readonly string[],
maxLength?: number,

Parameters

input: stringrequired

The name to check, such as Sales_2024.

existingNames?: readonly string[]optional

Names already in use; a match, ignoring case, gives duplicate.

maxLength?: numberoptional

The longest allowed name, in UTF-16 code units; defaults to 255.

Returns

Result of validating and NFC-normalizing a workbook table name.