Checks whether a value is a number.
Import:
import { isNumber } from '@mnaoumov/typescript-lib/type-guards';
Signature:
function isNumber(value: unknown): boolean
Parameters:
| Parameter |
Type |
Description |
value |
unknown |
The value to check. |
Returns: boolean — Whether the value is a number.