fx-flow v0.7.0 / pipe/strict / isNumber
Function: isNumber()
isNumber<
A
>(args
):args is Include<A, number>
Check whether args
is number.
Type parameters
• A
Parameters
• args: A
Returns
args is Include<A, number>
Example
typescript
isNumber(2); // true
isNumber("a"); // false