```ts
/** The quickest completed lap of a session. */
export function lapBest(laps: number[]): number {
  if (laps.length === 0) {
    return 0;
  }
  let best = laps[0];
  for (const lap of laps) {
    if (lap === 0) {
      continue;
    }
    if (lap < best) {
      best = lap;
    }
  }
  return best;
}
```