import { type Container } from "https://deno.land/x/easyts@0.1.3/container/types.ts";
container interface
Methods
clone(callback?: CloneCallback<T>): Container<T>
Create a full copy of the container
clear(callback?: DeleteCallback<T>): void
Empty the data in the container
compareTo(o: Container<T>, callback?: CompareCallback<T>): number
Returns true if the data depth of the two containers is consistent
iterator(reverse?: boolean): Iterator<T>
Returns a js iterator
getter
reverse(): Iterable<T>Returns an object that implements a js Iterable, but it traverses the data in reverse
forEach(callback: ValueCallback<T>, reverse?: boolean): void
call callback on each element in the container in turn
find(callback: ValidCallback<T>, reverse?: boolean): boolean
Traverse the container looking for elements until the callback returns true, then stop looking
map<TO>(callback: MapCallback<T, TO>, reverse?: boolean): Array<TO>
Convert container to array