---
url: https://cri-middleware.github.io/SSPlayerForWeb/api/@spritestudio/ssplayer-core/functions/labelFrameOf.md
---
# Function: labelFrameOf()

> **labelFrameOf**(`table`, `label`): `number` | `null`

Defined in: [src/Labels.ts:51](https://github.com/cri-middleware/SSPlayerForWeb/blob/eb9d544908210befb40d3729ed6fde7adc44f61a/packages/ssplayer-core/src/Labels.ts#L51)

The frame `label` marks in `table`, or null when the animation has no such
label. Names match exactly.

`_start` and `_end` are the animation's first and last frame, as they are in
SpriteStudio, where they are never in the label table; a real label of the
same name wins.

## Parameters

### table

[`SSLabelTable`](../interfaces/SSLabelTable.md)

### label

`string`

## Returns

`number` | `null`
