Skip to content

Tankōbon / main/services/bedetheque / pickSeries

Function: pickSeries() ​

pickSeries(candidates, text): BedethequeSeries | null

Defined in: main/services/bedetheque.ts:266

The series that is the one asked for: the name equal to the text (accents and case ignored), else the shortest name starting with it, else the shortest containing it. A translation of a series (Blacksad (en allemand)) only wins when nothing else matches; null when no name contains the text.

Parameters ​

candidates ​

BedethequeSeries[]

text ​

string

Returns ​

BedethequeSeries | null