npm.io
1.0.0 • Published 6 years ago

nrange

Licence
MIT
Version
1.0.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
3

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.

Keywords