2.0.0 • Published 2 years ago

@fabiospampinato/is-numeric v2.0.0

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

isNumeric

Checks if a variable represents a numeric value.

Install

npm install --save @fabiospampinato/is-numeric

Usage

import isNumeric from '@fabiospampinato/is-numeric';

isNumeric ( 3 ); // true
isNumeric ( '3' ); // true
isNumeric ( 2e+30 ); // true
isNumeric ( '2e30' ); // true

isNumeric ( Infinity ); // false
isNumeric ( NaN ); // false
isNumeric ( '__test__' ); // false
isNumeric ( '123test' ); // false

License

MIT © Fabio Spampinato

2.0.0

2 years ago

1.0.6

5 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago