Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denocordts/deps.ts>Collection#sweep

An Object Oriented Discord API wrapper for Deno.
Latest
method Collection.prototype.sweep
import { Collection } from "https://deno.land/x/denocordts@1.2.0/deps.ts";

Removes items that satisfy the provided filter function.

Parameters

fn: (
value: V,
key: K,
collection: this,
) => boolean

Function used to test (should return a boolean)

Returns

number

The number of removed entries

Parameters

fn: (
this: T,
value: V,
key: K,
collection: this,
) => boolean
thisArg: T

Returns

number