true if T is exactly of type number, otherwise false.
true
T
number
false
IsExactlyNumber<any | number>; // false IsExactlyNumber<unknown | number> // false IsExactlyNumber<number> // true IsExactlyNumber<87> // false Copy
IsExactlyNumber<any | number>; // false IsExactlyNumber<unknown | number> // false IsExactlyNumber<number> // true IsExactlyNumber<87> // false
Returns
true
ifT
is exactly of typenumber
, otherwisefalse
.Example