Skip to content
Subhajit Sahu edited this page Aug 8, 2022 · 15 revisions

Find the smallest and largest values.

Similar: mean, median, modes, variance, range.


function range(...xs)
// xs: a list of numbers

const xmath = require('extra-math');


xmath.range(1, 7);
// → 6

xmath.range(1, 7, 6);
// → 6

xmath.range(1, 7, 8, 6);
// → 7


References

Clone this wiki locally