string-is-numeric

1.0.0 • Public • Published

string-is-numeric

Check whether or not a string is numeric.

Installation

npm install --save string-is-numeric

Usage

const stringIsNumeric = require('string-is-numeric')
 
stringIsNumeric('') // false
stringIsNumeric('test') // false
 
stringIsNumeric('10') // true
stringIsNumeric('0xFF') // true
 
stringIsNumeric(10) // throws TypeError
stringIsNumeric(null) // throws TypeError

Readme

Keywords

none

Package Sidebar

Install

npm i string-is-numeric

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • linusu