Skip to content

fx-flow v0.7.0 / pipe/strict / isNumber

Function: isNumber()

isNumber<A>(args): args is Include&lt;A, number&gt;

Check whether args is number.

Type parameters

A

Parameters

args: A

Returns

args is Include&lt;A, number&gt;

Example

typescript
isNumber(2); // true
isNumber("a"); // false

More examples

Source

packages/core/src/pipe/strict/isNumber.ts:14

Released under the MIT License.