Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/xbar/src/utility.ts>pipeCompatibleReduce

Write xbar app plugins using TypeScript/JavaScript and Deno
Latest
variable pipeCompatibleReduce
import { pipeCompatibleReduce } from "https://deno.land/x/xbar@v2.1.0/src/utility.ts";

type

<T1, T2>(callback: (
previousValue: T2,
currentValue: T1,
currentIndex: number,
array: T1[],
) => T2
) => unknown