ixfx
    Preparing search index...

    Function min

    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}

    Iterable

    Should return true if a is greater than b.

    Yields minimum values

    • Type Parameters

      • V

      Parameters

      • it: AsyncIterable<V>
      • Optionalgt: (a: V, b: V) => boolean

      Returns AsyncGenerator<V>

    • Type Parameters

      • V

      Parameters

      • it: Iterable<V>
      • Optionalgt: (a: V, b: V) => boolean

      Returns Generator<V>