Skip to main content
Module

x/datastructure/mod.ts>Stack

Implement different Data Structures using TypeScript. Deno Third-party Module.
Go to Latest
class Stack
implements StackApi
import { Stack } from "https://deno.land/x/datastructure@0.0.4/mod.ts";

Constructors

new
Stack()

Properties

private
bottomNode: StackType
private
topNode: StackType
size: number

Methods

pop()
push(data: DataType<any>)
search(key: string | number)
update(key: string | number, newValue: any)