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
15 lines (13 loc) • 354 B
TypeScript
import { Path } from "./Path";
export default function paths(
obj: any,
options?: {
pathFormat?: "string" | "array"; // = "string";
checkCircular?: boolean; // = false;
includeCircularPath?: boolean,
childrenPath?: Path[];
includeRoot?: boolean;
leavesOnly?: boolean; // = false;
rootIsChildren?: boolean;
}
): Path[];