---
url: /reference/@cssdoc/core/functions/recordNameOf.md
---
# Function: recordNameOf()

```ts
function recordNameOf(commentText, configuration?): string | undefined;
```

Defined in: [packages/core/src/grammar.ts:710](https://github.com/thedannywahl/cssdoc/blob/main/packages/core/src/grammar.ts#L710)

Whether a comment's text opens a record — i.e. carries a record tag. Uses the `configuration`'s
record tags when given, else the default [RECORD\_TAGS](../variables/RECORD_TAGS.md).

## Parameters

### commentText

`string`

The comment body.

### configuration?

[`CssDocConfiguration`](../classes/CssDocConfiguration.md)

The active configuration (optional).

## Returns

`string` | `undefined`

The record name, or `undefined`.
