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

x/denocordts/deps.ts>Collection#every

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

Checks if all items passes a test. Identical in behavior to Array.every().

Examples

collection.every(user => !user.bot);

Parameters

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

Function used to test (should return a boolean)

Returns

boolean

Parameters

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

Returns

boolean