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

x/collection/src/Collection.ts>Collection#clone

Utility data structure for Deno (Discord.js Collection).
Latest
method Collection.prototype.clone
import { Collection } from "https://deno.land/x/collection@v1.0.1/src/Collection.ts";

Creates an identical shallow copy of this collection.

Examples

const newColl = someColl.clone();