@indlekofer/is_numeric

1.1.1 • Public • Published

@indlekofer/is_numeric

npm version

returns true for numbers (int, float) and strings containing only numbers (space is not a number). false for boolean, undefined, null, empty strings, invalid strings, +/-infinity

Usage

import isNumeric from '@indlekofer/is_numeric';

console.log(isNumeric("100")); // -> true

Params

data: string|number

Return

boolean

Readme

Keywords

none

Package Sidebar

Install

npm i @indlekofer/is_numeric

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

1.86 kB

Total Files

4

Last publish

Collaborators

  • daind