UNPKG

deepdash-es

Version:

➔ 𝐃eep extension for 𝐋odash-es: ✓ eachDeep ✓ filterDeep ✓ pickDeep ✓ omitDeep ✓ keysDeep ✓ index ✓ condenseDeep ⋮ Parent nodes tracking ⋮ Circular references check ⋮ Leaves only mode ⋮ Path as a valid js string or an array ⋮

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;