Home > rc-js-util > arrayForEach
Like Array.forEach
.
Signature:
export declare function arrayForEach<TItem>(items: ArrayLike<TItem>, callback: (item: TItem, index: number) => void): void;
Parameter | Type | Description |
---|---|---|
items | ArrayLike<TItem> | |
callback | (item: TItem, index: number) => void |
Returns:
void
Has more consistent performance characteristics cross platform than the built in Array.forEach
.
See arrayForEach().