0.0.25 • Published 5 years ago

@extra-math/mode.min v0.0.25

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Gives the values that appear most often.

This is part of package extra-math.

This is browserified, minified version of @extra-math/mode. It is exported as global variable math_mode. CDN: unpkg, jsDelivr.

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