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

x/aether/mod.ts>Collection

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

Constructors

new
Collection(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