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

x/revoltio/deps.ts>Collection#randomKey

No-nonsense Revolt library for nodejs and deno.
Latest
method Collection.prototype.randomKey
import { Collection } from "https://deno.land/x/revoltio@v1.0.0/deps.ts";

Obtains unique random key(s) from this collection.

Returns

K | undefined

A single key if no amount is provided or an array

Parameters

amount: number