Miss any of our Open RFC calls?Watch the recordings here! »

nrange

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.

Install

npm i nrange

DownloadsWeekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.09 kB

Total Files

6

Last publish

Collaborators

  • avatar