UNPKG

deepdash-es

Version:

➔ 𝐃eep extension for 𝐋odash-es: ✓ eachDeep ✓ filterDeep ✓ pickDeep ✓ omitDeep ✓ keysDeep ✓ index ✓ condenseDeep ⋮ Parent nodes tracking ⋮ Circular references check ⋮ Leaves only mode ⋮ Path as a valid js string or an array ⋮

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; // }