isnumberwithinrange
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

#isNumberWithinRange

###Import:

const isNumberWithinRange = require("isnumberwithinrange");

###Parameters

  • number
  • min
  • max
  • returnType (Optional, Boolean by default)
isNumberWithinRange(10, -10, 10); // true
isNumberWithinRange(10, 1, 5.5, Number); // 5.5
isNumberWithinRange(-78, -50, 20, String); // "-50"

Readme

Keywords

none

Package Sidebar

Install

npm i isnumberwithinrange

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.13 kB

Total Files

6

Last publish

Collaborators

  • raichlsimon