Module

x/datastructure/stack/helper.d.ts

Implement different Data Structures using TypeScript. Deno Third-party Module.
Latest
interface StackApi
import { type StackApi } from "https://deno.land/x/datastructure@1.2.1/stack/helper.d.ts";

Properties

size: number

Methods

getTop(): null | DataType<any>
getBottom(): null | DataType<any>
push(data: DataType<any>): boolean
pop(): boolean | DataType<any>
search(key: string | number): boolean | DataType<any>
update(key: string | number, newValue: any): boolean | DataType<any>
log(): void
iterator(): Generator