UNPKG

deepdash

Version:

➔ 𝐃eep standalone lib / 𝐋odash extension: ✓ eachDeep ✓ filterDeep ✓ mapDeep ✓ reduceDeep ✓ pickDeep ✓ omitDeep ✓ keysDeep ✓ index ✓ condenseDeep ⋮ Parents stack ⋮ Circular check ⋮ Leaves only mode ⋮ Children mode ⋮ cherry-pick ⋮ esm

24 lines (22 loc) 537 B
import { Path } from "./Path"; import { IIterateeContext } from "./IIterateeContext"; export default function reduceDeep( obj: any, callback?: ( accumulator: any, value: any, key: string | number, parentValue: any, context: IIterateeContext ) => any, accumulator?: any, options?: { pathFormat?: "string" | "array"; checkCircular?: boolean; childrenPath?: Path[]; includeRoot?: boolean; leavesOnly?: boolean; rootIsChildren?: boolean; callbackAfterIterate?: boolean; } ): any;