# portsSpeedBps

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

@shumoku/core · 0.6.1 · function

# portsSpeedBps

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

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
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `speeds` | `readonly string | undefined[]` | No additional description. | `—` |

## Returns

```
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)
