Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.413 kB

node-minmaxbuild status

Calculate the minimum, maximum value and more.

Example

    var mm = minmax();
    mm(0);
    mm(-4712);
    assert.strictEqual(mm.max, 0);
    assert.strictEqual(mm.min, -4712);
    assert.strictEqual(mm.diff, 4712);
    assert.strictEqual(mm.mean, -2356);
Jump to Line
Something went wrong with that request. Please try again.