UNPKG

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

10 lines (9 loc) 265 B
// export default function getHasChildren(_) { // function hasChildren(obj, childrenPath) { // return _.some(childrenPath, (cp) => { // var children = _.get(obj, cp); // return !_.isEmpty(children); // }); // } // return hasChildren; // }