Skip to content

indlekofer/is_numeric

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published