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

Collection

Utility data structure for Deno (Original Author: Discord.js Developers).

NodeJS

Discord.js Collection

Example

import { Collection } from "https://deno.land/x/collection/mod.ts";

const store = new Collection();

store.set("test", { value: "asdf", id: 1 });

const data = store.find(x => x.id === 1).value;

Documentation

https://discord.js.org/#/docs/collection/master/general/welcome