UNPKG

jsmodern

Version:

An extension to existing JavaScript, influenced by other great languages such as Rust, Dart, Java, Golang, etc.

11 lines 378 B
import { PrototypeStruct } from '..'; declare type FoldPredicate<T> = (previousValue: T, currentValue: T, index: number) => T; export declare type FoldFn<T> = (initialValue: any, predicate: FoldPredicate<T>) => T; export declare const fold: PrototypeStruct; declare global { interface Array<T> { fold: FoldFn<T>; } } export {}; //# sourceMappingURL=fold.d.ts.map