Scorio - v0.2.3
Scorio
npm
GitHub
Preparing search index...
aggregate
bestOf
bestOfN
Function bestOfN
bestOfN
<
T
,
ReturnIndex
extends
boolean
=
false
,
ReturnScore
extends
boolean
=
false
,
>
(
answersInput
:
AnswerInput
<
T
>
,
scoresInput
:
ScoreInput
,
options
?:
BestOfNOptions
<
ReturnIndex
,
ReturnScore
>
,
)
:
PackedSelection
<
T
,
ReturnIndex
,
ReturnScore
>
Select the valid candidate with the highest score (ties: lowest index).
Type Parameters
T
ReturnIndex
extends
boolean
=
false
ReturnScore
extends
boolean
=
false
Parameters
answersInput
:
AnswerInput
<
T
>
scoresInput
:
ScoreInput
options
:
BestOfNOptions
<
ReturnIndex
,
ReturnScore
>
= {}
Returns
PackedSelection
<
T
,
ReturnIndex
,
ReturnScore
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Python documentation
Julia documentation
Scorio
npm
GitHub
Scorio - v0.2.3
Loading...
Select the valid candidate with the highest score (ties: lowest index).