Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fifo/lib/fifo.ts>FIFO#peek

First-in-first-out queue
Latest
method FIFO.prototype.peek
import { FIFO } from "https://deno.land/x/fifo@v0.2.4/lib/fifo.ts";

Peeks at the next value in the queue.

Returns

T | undefined

The next value or undefined if the queue is empty.