Skip to main content

Function: minWithConcur()

Returns a concur iterable containing a minimum value of concurIterable by comparing the numerical values of each value, as defined by fn, if concurIterable contains at least one value. Otherwise, returns an empty concur iterable.

Example

console.log(
await pipe(
asConcur([`eating`, `sleeping`, `yawning`]),
minWithConcur(value => value.length),
getConcur,
),
)
//=> eating

Since

v0.0.1

Call Signature

minWithConcur<Value>(fn, concurIterable): ConcurOptional<Value>

Type Parameters

Value

Parameters

fn

(value) => MaybePromiseLike<number>

concurIterable

ConcurIterable<Value>

Returns

ConcurOptional<Value>

Defined in

statistics.d.ts:801

Call Signature

minWithConcur<Value>(fn): (concurIterable) => ConcurOptional<Value>

Type Parameters

Value

Parameters

fn

(value) => MaybePromiseLike<number>

Returns

Function

Parameters

concurIterable

ConcurIterable<Value>

Returns

ConcurOptional<Value>

Defined in

statistics.d.ts:801