@guildcord/collection
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Guilded Api Types

License NPM

A package with extended JavaScript Map as utility.

Installation

# NPM
npm install @guildcord/collection

# Yarn 
yarn install @guildcord/collection

Import

JavaScript

const { Collection } = require("@guildcord/collection");

const map = new Collection();

map.set("foo", 1);
map.get("foo");

TypeScript/EsModule

import { Collection } = from "@guildcord/collection";

const map = new Collection();

map.set("foo", 1);
map.get("foo");

Usage

// import { Collection } = from "@guildcord/collection"; Typescript/EsModule
const { Collection } = require("@guildcord/collection");

const map = new Collection();

map.set("foo", 1);
map.get("foo");

License

Licensed under MIT

Package Sidebar

Install

npm i @guildcord/collection

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

7.3 kB

Total Files

8

Last publish

Collaborators

  • colderry