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

1.0.0 • Public • Published

NRange Travis CI Build Status

Check if numbers or strings are ordered from smallest to largest.

NPM Badge

Install

npm install nrange

Usage

const nRange = require("nrange");
 
nRange(1, 2, 3);
//=> true
 
nRange(1, 3, 2);
//=> false
 
nRange("a", "b", "c");
//=> true
 
nRange("a", "c", "b");
//=> false

API

nRange(...values)

values

Type: strings or numbers

The values to compare.

Package Sidebar

Install

npm i nrange

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.09 kB

Total Files

6

Last publish

Collaborators

  • richienb