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 (21 loc) • 488 B
TypeScript
export default function omitDeep(
obj: any,
paths: string | RegExp | (string | RegExp)[],
options?: {
checkCircular?: boolean;
keepCircular?: boolean;
replaceCircularBy?: any;
condense?: boolean;
cloneDeep?: (value: any) => any;
onMatch?: {
skipChildren?: boolean;
cloneDeep?: boolean;
keepIfEmpty?: boolean;
};
onNotMatch?: {
skipChildren?: boolean;
cloneDeep?: boolean;
keepIfEmpty?: boolean;
};
}
): any;