0.0.25 • Published 5 years ago
@extra-math/mode v0.0.25
Gives the values that appear most often.
This is part of package extra-math.
math.mode(...n);
// n: a list of numbers
const math = require('extra-math');
math.mode(1, 2);
// [1, 2]
math.mode(1, 2, 2);
// [2]
math.mode(1, 2, 2, 3, 3);
// [2, 3]
references
0.0.25
5 years ago