Skip to main content

Function: getDefaultMonitorId()

getDefaultMonitorId(monitorIds: readonly string[]): string

Defined in: src/utils/monitorUiHelpers.ts:141

Get the default monitor ID from a list of monitor IDs.

Parametersโ€‹

monitorIdsโ€‹

readonly string[]

Array of monitor IDs.

Returnsโ€‹

string

First monitor identifier in the list or an empty string when the collection is empty.

Remarksโ€‹

Returns the first element of the array if it exists; otherwise, an empty string.