10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Find smallest entries.
Alternatives: minimums, minimumEntries. Similar: maximums, minimums.
function minimumEntries(x, n, fc, fm) // x: an array // n: number of values // fc: compare function (a, b) // fm: map function (v, i, x)
const xarray = require('extra-array'); var x = [4, 2, 1, 3, 5]; xarray.minimumEntries(x, 2); // → [ [ 2, 1 ], [ 1, 2 ] ] xarray.minimumEntries(x, 3); // → [ [ 2, 1 ], [ 1, 2 ], [ 3, 3 ] ]
There was an error while loading. 8000 Please reload this page.