# portsSpeedBps

Canonical: https://docs.shumoku.dev/ja/library/api/portsSpeedBps
Language: ja

@shumoku/core · 0.6.1 · function

# portsSpeedBps

[ソース](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/models/link-speed.ts#L50)

APIの説明は英語のcanonical sourceを表示しています。

The speed the ports at a link's ends name: the slower of the two, the only one when one end names it, nothing when neither does.

```
portsSpeedBps(speeds: readonly string | undefined[]): number | undefined
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `speeds` | `readonly string | undefined[]` | 追加説明はありません。 | `—` |

## 戻り値

```
number | undefined
```

[`libs/@shumoku/core/src/libs/@shumoku/core/src/models/link-speed.ts:50`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/models/link-speed.ts#L50)
