Skip to content
Sheetwrite

@sheetwrite/core/codec

validateSheetNamefunction

Report a problem

On this page

Validate and canonicalize a SpreadsheetML worksheet name.

Declaration

function validateSheetName(
name: string,
existingNames?: readonly string[],

Parameters

name: stringrequired

The proposed sheet name.

existingNames?: readonly string[]optional

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

Returns

Successful canonical name or an actionable validation failure.