<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/css-tokenizer](./css-tokenizer.md) &gt; [isTokenNumeric](./css-tokenizer.istokennumeric.md)

## isTokenNumeric() function

Assert that a token is a numeric token

**Signature:**

```typescript
export declare function isTokenNumeric(x?: CSSToken | null): x is NumericToken;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

x


</td><td>

[CSSToken](./css-tokenizer.csstoken.md) \| null


</td><td>

_(Optional)_


</td></tr>
</tbody></table>

**Returns:**

x is [NumericToken](./css-tokenizer.numerictoken.md)

