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

x/easyts/internal/decorator.ts>ClassForEach

js library written with ts, use select and chan like golang in js.
Latest
class ClassForEach
implements ForEach<T>
import { ClassForEach } from "https://deno.land/x/easyts@0.1.2/internal/decorator.ts";

Properties

readonly
length: number

Methods

find(callback: ValidCallback<T>, reverse?: boolean): boolean

Traverse the container looking for elements until the callback returns true, then stop looking

forEach(callback: ValueCallback<T>, reverse?: boolean): void

call callback on each element in the container in turn

has(
data: T,
reverse?: boolean,
callback?: CompareCallback<T>,
): boolean

Returns whether the data data exists in the container

iterator(reverse?: boolean): Iterator<T>
join<TO>(
separator?: string,
callback?: MapCallback<T, TO>,
reverse?: boolean,
): string

Adds all the elements of an container into a string, separated by the specified separator string.

map<TO>(callback: MapCallback<T, TO>, reverse?: boolean): Array<TO>

Convert container to array