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

x/denocordts/deps.ts>Collection#filter

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

Identical to Array.filter(), but returns a Collection instead of an Array.

Examples

collection.filter(user => user.username === 'Bob');

Parameters

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

The function to test with (should return boolean)

Parameters

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