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
22 lines (19 loc) • 508 B
TypeScript
import { Path } from "./Path";
import { IIterateeContext } from "./IIterateeContext";
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;
}
): Path;