vanilla-type-check
Version:
10 lines (9 loc) • 312 B
TypeScript
/**
* Check if a value is a number.
* Note that Strings are NOT _numbers_ (even `"123"`. Use `isNumeric` for that)
* and `Infinity` IS a _number_ in this case
*
* @param value value to check
* @returns `true` if `obj` is a number
*/
export declare function isNumber(value: any): value is number;