Returns a stream of minimum values.
Streaming result: works with endless iterables.
min([ {i:0,v:1}, {i:1,v:9}, {i:2,v:-2}], (a, b) => a.v > b.v);// Yields: {i:2, v:1}, {i:2,v:-2} Copy
min([ {i:0,v:1}, {i:1,v:9}, {i:2,v:-2}], (a, b) => a.v > b.v);// Yields: {i:2, v:1}, {i:2,v:-2}
Iterable
Should return true if a is greater than b.
a
b
Yields minimum values
Optional
Returns a stream of minimum values.
Streaming result: works with endless iterables.
Param: it
Iterable
Param: gt
Should return true if
a
is greater thanb
.Returns
Yields minimum values