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

x/collection/src/Collection.ts>default#every

Utility data structure for Deno (Discord.js Collection).
Latest
method default.prototype.every
import { default } from "https://deno.land/x/collection@v1.0.1/src/Collection.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