arrayrange
A simple, lightweight utility which calculates the minimum and maximum values in an array, and the range between the values.
Installation
npm install arrayrange
Usage
A full guide to the API can be found here.
Minimum value
var arrayRange = ;var min = arrayRange;
Maximum value
var arrayRange = ;var max = arrayRange;
Range
var arrayRange = ;var range = arrayRange;
Improvements
I'm planning to add the following functionality:
- Handling string arrays (min, max and range)
- Handling arrays with mixed types (in a sensible and/or customisable way)
Contributions and Issues
If you notice any issues please log them, and contributions are always welcome.