1.0.3 • Published 2 years ago

@cstan/is-numeric v1.0.3

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

is-numeric

A CommonJS package that returns true when the argument is a digit, period or hyphen. Otherwise returns false.

Installation:

npm install @cstan/is-numeric

Use:

const { isNumeric } = require("@cstan/is-numeric")

let c = "k"; // a one char string

if (isNumeric(c)) {
console.log("It is a numeric char.")
} else {
console.log("It is NOT a numeric char.")
}`
// It is NOT a numeric char.
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago