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 ⋮

22 lines (20 loc) 568 B
import { Path } from "./Path"; import { IIterateeContext } from "./IIterateeContext"; import { IDeepEntry } from "./IDeepEntry"; export default function findDeep( obj: any, callback?: ( value: any, key: string | number, parentValue: any, context: IIterateeContext ) => void | boolean, options?: { pathFormat?: "string" | "array"; // = "string"; checkCircular?: boolean; // = false; childrenPath?: Path[]; includeRoot?: boolean; leavesOnly?: boolean; // = false; rootIsChildren?: boolean; } ): IDeepEntry | undefined;