Skip to main content

Built and signed on GitHub Actions

Double-ended queue implementation

This package works with Bun, Cloudflare Workers, Node.js, Deno, Browsers
JSR Score
100%
Published
6 days ago (0.1.3)

deque JSR

Double-ended queue implementation, based on Denque.

import Deque from "jsr:@korkje/deque"; 

const deque = new Deque([1, 2, 3, 4]);
deque.shift(); // 1
deque.pop(); // 4
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @korkje/deque

Import symbol

import * as mod from "@korkje/deque";

Add Package

npx jsr add @korkje/deque

Import symbol

import * as mod from "@korkje/deque";

Add Package

yarn dlx jsr add @korkje/deque

Import symbol

import * as mod from "@korkje/deque";

Add Package

pnpm dlx jsr add @korkje/deque

Import symbol

import * as mod from "@korkje/deque";

Add Package

bunx jsr add @korkje/deque

Import symbol

import * as mod from "@korkje/deque";