//#region src/Array/forEachRight.d.ts /** * # forEachRight * * ```ts * function Array.forEachRight( * target: readonly T[], * callback: ( * value: NoInfer, * index: number, * target: readonly NoInfer[], * ) => any, * ): readonly T[] * ``` * * Executes the provided `callback` function once for each element in `array` in reverse order and returns the original array. * * ## Example * * ```ts [data-first] * import { Array } from "@monstermann/array"; * * Array.forEachRight([1, 2, 3], (x) => console.log(x)); // [1, 2, 3] * ``` * * ```ts [data-last] * import { Array } from "@monstermann/array"; * * pipe( * [1, 2, 3], * Array.forEachRight((x) => console.log(x)), * ); // [1, 2, 3] * ``` * */ declare const forEachRight: { (callback: (value: NoInfer, index: number, target: readonly NoInfer[]) => any): (target: T[]) => T[]; (callback: (value: NoInfer, index: number, target: readonly NoInfer[]) => any): (target: readonly T[]) => readonly T[]; (target: T[], callback: (value: NoInfer, index: number, target: readonly NoInfer[]) => any): T[]; (target: readonly T[], callback: (value: NoInfer, index: number, target: readonly NoInfer[]) => any): readonly T[]; }; //#endregion export { forEachRight };