@annexe/number.isnumber
v0.1.2
Published
A Typescript utility function to assert whether a value is a number type.
Downloads
6
Readme
@annexe/isnumber
A Typescript utility function to assert whether a value is a number type.
Installation
To install @annexe/isnumber:
Yarn
yarn add @annexe/isnumber
NPM
npm install @annexe/isnumber
Usage
import { isNumber } from '@annexe/isnumber';
console.log(isNumber(123)); // logs TRUE
console.log(isNumber('3.142')); // logs TRUE