Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/aether/src/util/Collection.ts>default

A Deno library to interface with the Discord API
Go to Latest
class default
extends Map<string, V>
import { default } from "https://deno.land/x/aether@v0.0.1-beta/src/util/Collection.ts";

A simple data class to hold class-based data

Constructors

new
default(base: Function, limit?: number)

Properties

private
base: Function
private
limit: number

Methods

add(obj: V, ...params: any[]): V
every(fn: (arg: V) => boolean)
filter(fn: (arg: V) => boolean): V[]
find(fn: (arg: V) => boolean): V | undefined
map(func: (arg: V) => any): V[]
reduce(fn: (...args: any[]) => any, initialValue: number)
remove(obj: V): V
some(fn: (arg: V) => boolean): boolean