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
19 lines (17 loc) • 500 B
TypeScript
import { Path } from "./Path";
import { IIterateeContext } from "./IIterateeContext";
export interface IDeepEntry {
value: any;
key?: string | number;
path?: Path;
/**
* NOTE: At now, parent is not type of IDeepEntry. It is just parent.value
* JS source code should be fixed
*/
parent?: IDeepEntry;
context?: IIterateeContext;
/**
* contains matched childrenPath path of this parent node, chosen from childrenPath array, if it was specified.
*/
childrenPath?: Path;
}