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

14 lines (11 loc) 311 B
// 'use strict'; // function getHasChildren(_) { // function hasChildren(obj, childrenPath) { // return _.some(childrenPath, function (cp) { // var children = _.get(obj, cp); // return !_.isEmpty(children); // }); // } // return hasChildren; // } // module.exports = getHasChildren;