1.1.1 • Published 3 years ago

@indlekofer/is_numeric v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@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