nrange
v1.0.0
Published
Check if numbers or strings are ordered from smallest to largest.
Downloads
5
Maintainers
Readme
NRange
Check if numbers or strings are ordered from smallest to largest.
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.